X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/e0cf523ebc5837a1bc23bec7e1917dbb75c8d747..de28b7451f4dd9cb850e4b5ddac7b610f7ad5913:/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(); }