]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/GoogleToken.php
Shorten air bundle route aliases
[airbundle] / Entity / GoogleToken.php
index 68a1d384338733cefbda155f048fbf123f63889c..3da7279ed8d66afdff49aa1fadc17449eb18918b 100644 (file)
@@ -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'));
                }