X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6f3158f30f33264488887f5a0c8e271cb7d17747..04441c5bddb7e62cf60aacbaf4146361d7907670:/Entity/Slot.php diff --git a/Entity/Slot.php b/Entity/Slot.php index 116c29f..445f053 100644 --- a/Entity/Slot.php +++ b/Entity/Slot.php @@ -164,7 +164,7 @@ class Slot { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a slot instance - if (($slot = $eventArgs->getEntity()) instanceof Slot) { + if (($slot = $eventArgs->getObject()) instanceof Slot) { //Set updated value $slot->setUpdated(new \DateTime('now')); }