]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Session.php
Remove subscribe templates
[airbundle] / Entity / Session.php
index f5f0ef555def1e9607c9de464e99e9fbf7827961..fb0b8f3cc21a47c04a691622c6b7965a7e184711 100644 (file)
@@ -113,11 +113,6 @@ class Session {
         */
        private $application;
 
         */
        private $application;
 
-       /**
-        * @var Dance
-        */
-       private $dance;
-
        /**
         * @var Location
         */
        /**
         * @var Location
         */
@@ -579,28 +574,6 @@ class Session {
                return $this->applications;
        }
 
                return $this->applications;
        }
 
-       /**
-        * Set dance
-        *
-        * @param Dance $dance
-        *
-        * @return Session
-        */
-       public function setDance(Dance $dance): Session {
-               $this->dance = $dance;
-
-               return $this;
-       }
-
-       /**
-        * Get dance
-        *
-        * @return Dance
-        */
-       public function getDance(): Dance {
-               return $this->dance;
-       }
-
        /**
         * Set location
         *
        /**
         * Set location
         *
@@ -672,9 +645,9 @@ class Session {
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have a session instance
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
                //Check that we have a session instance
-               if (($user = $eventArgs->getEntity()) instanceof Session) {
+               if (($session = $eventArgs->getEntity()) instanceof Session) {
                        //Set updated value
                        //Set updated value
-                       $user->setUpdated(new \DateTime('now'));
+                       $session->setUpdated(new \DateTime('now'));
                }
        }
 
                }
        }