X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/0d7f4976cd0f4eb1434edeb9d55c7024517128b9..9f8c7e7014e3dfd8823926a3fc21c1fb2fe60de5:/Entity/GoogleToken.php?ds=inline diff --git a/Entity/GoogleToken.php b/Entity/GoogleToken.php index 68a1d38..3da7279 100644 --- a/Entity/GoogleToken.php +++ b/Entity/GoogleToken.php @@ -283,7 +283,7 @@ class GoogleToken { */ public function preUpdate(PreUpdateEventArgs $eventArgs): ?GoogleToken { //Check that we have an snippet instance - if (($entity = $eventArgs->getEntity()) instanceof GoogleToken) { + if (($entity = $eventArgs->getObject()) instanceof GoogleToken) { //Set updated value return $entity->setUpdated(new \DateTime('now')); }