]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Slot.php
Rename locales
[airbundle] / Entity / Slot.php
index 10e5b3d6f8bb1c48d996be97b4e72f92029328b6..c5fcd86771529d784deea742fc2c368fb4253755 100644 (file)
@@ -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'));
                }
        }