]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/GoogleCalendar.php
Fix header comment
[airbundle] / Entity / GoogleCalendar.php
index 940a678b01fa8e3a45a11948853863c8d3adeb56..ff4f455367e58698b18daac6f09f3c484f686b2d 100644 (file)
@@ -216,7 +216,7 @@ class GoogleCalendar {
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs): ?GoogleCalendar {
                //Check that we have an snippet instance
-               if (($entity = $eventArgs->getEntity()) instanceof GoogleCalendar) {
+               if (($entity = $eventArgs->getObject()) instanceof GoogleCalendar) {
                        //Set updated value
                        return $entity->setUpdated(new \DateTime('now'));
                }