]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Location.php
Add dance entity
[airbundle] / Entity / Location.php
index 1fdca93803149aa9a4c241536af7b21366d0d3e4..6e66cea61a45df62a33d9731308a0a984fb0e492 100644 (file)
@@ -427,9 +427,9 @@ class Location {
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have a location instance
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have a location instance
-               if (($user = $eventArgs->getEntity()) instanceof Location) {
+               if (($location = $eventArgs->getEntity()) instanceof Location) {
                        //Set updated value
                        //Set updated value
-                       $user->setUpdated(new \DateTime('now'));
+                       $location->setUpdated(new \DateTime('now'));
                }
        }
 
                }
        }