X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/0d7f4976cd0f4eb1434edeb9d55c7024517128b9..dca2abfc031c68f180052f935cc72ff3308f2111:/Entity/GoogleToken.php?ds=sidebyside 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')); }