X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/0d7f4976cd0f4eb1434edeb9d55c7024517128b9..07ee75c0ded3f104345cf801bb6fbb1f0f9565a6:/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')); }