X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/e0cf523ebc5837a1bc23bec7e1917dbb75c8d747..b929a02319f2fd8d373d1d3f4caf62604b516b7f:/Entity/Session.php?ds=inline 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(); }