X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/ca46631d1280ea5c387ae40b0b9ad1f77cb4e1c0..9f8c7e7014e3dfd8823926a3fc21c1fb2fe60de5:/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')); }