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