]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Session.php
Fix dance user add/remove from inverse side
[airbundle] / Entity / Session.php
index 084580e6af8debfbcd0dd6a0f63f31911a315352..70b2fc4bed5e92bb2855c4b65f4aa91cc08f65b0 100644 (file)
@@ -49,7 +49,7 @@ class Session {
        private $stop;
 
        /**
        private $stop;
 
        /**
-        * @var boolean
+        * @var bool
         */
        private $premium;
 
         */
        private $premium;
 
@@ -149,6 +149,7 @@ class Session {
                $this->locked = null;
                $this->created = new \DateTime('now');
                $this->updated = new \DateTime('now');
                $this->locked = null;
                $this->created = new \DateTime('now');
                $this->updated = new \DateTime('now');
+               $this->application = null;
                $this->applications = new ArrayCollection();
        }
 
                $this->applications = new ArrayCollection();
        }
 
@@ -285,7 +286,7 @@ class Session {
        /**
         * Set premium
         *
        /**
         * Set premium
         *
-        * @param boolean $premium
+        * @param bool $premium
         *
         * @return Session
         */
         *
         * @return Session
         */
@@ -628,7 +629,7 @@ class Session {
         *
         * @return Session
         */
         *
         * @return Session
         */
-       public function setApplication(Application $application): Session {
+       public function setApplication(?Application $application): Session {
                $this->application = $application;
 
                return $this;
                $this->application = $application;
 
                return $this;