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