X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/1b020b02e1d1fa56e737c8c5dbf5d7e5f48d587e..f0ed7af138b95f31354f8d5a37cb4cd27b902a75:/Entity/Session.php diff --git a/Entity/Session.php b/Entity/Session.php index fb0b8f3..084580e 100644 --- a/Entity/Session.php +++ b/Entity/Session.php @@ -132,10 +132,12 @@ class Session { * Constructor */ public function __construct() { + //Set defaults $this->begin = null; $this->start = null; $this->length = null; $this->stop = null; + $this->premium = null; $this->rainfall = null; $this->rainrisk = null; $this->realfeel = null; @@ -145,7 +147,8 @@ class Session { $this->temperaturemin = null; $this->temperaturemax = null; $this->locked = null; - $this->premium = null; + $this->created = new \DateTime('now'); + $this->updated = new \DateTime('now'); $this->applications = new ArrayCollection(); }