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