X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/9aad88c45d93dadacd35176364b56df4734c017b..1d2f3611d73e15020a71b0e65c8e2daf9750b05c:/Entity/Slot.php diff --git a/Entity/Slot.php b/Entity/Slot.php index 10e5b3d..c5fcd86 100644 --- a/Entity/Slot.php +++ b/Entity/Slot.php @@ -161,9 +161,9 @@ class Slot { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a slot instance - if (($user = $eventArgs->getEntity()) instanceof Slot) { + if (($slot = $eventArgs->getEntity()) instanceof Slot) { //Set updated value - $user->setUpdated(new \DateTime('now')); + $slot->setUpdated(new \DateTime('now')); } }