X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/fbe17cd04f8a37876254f2fdcb90566b05671a47..d3c8ab5a395adc36ec3095e7effb6f0db195887b:/Entity/GoogleCalendar.php?ds=sidebyside diff --git a/Entity/GoogleCalendar.php b/Entity/GoogleCalendar.php index 940a678..ff4f455 100644 --- a/Entity/GoogleCalendar.php +++ b/Entity/GoogleCalendar.php @@ -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')); }