From: Raphaƫl Gertz Date: Wed, 9 Dec 2020 19:47:58 +0000 (+0100) Subject: Add locked field X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/666f2659c61898eb5707aca424f7c89c835261df?hp=26d52d915d28e80e31035300c5932d34a579aaa4 Add locked field --- diff --git a/Entity/Session.php b/Entity/Session.php index e2ffc7a..20d50dd 100644 --- a/Entity/Session.php +++ b/Entity/Session.php @@ -81,6 +81,11 @@ class Session { */ private $temperaturemax; + /** + * @var \DateTime + */ + private $locked; + /** * @var \DateTime */ @@ -433,6 +438,28 @@ class Session { return $this->temperaturemax; } + /** + * Set locked + * + * @param \DateTime $locked + * + * @return Session + */ + public function setLocked($locked) { + $this->locked = $locked; + + return $this; + } + + /** + * Get locked + * + * @return \DateTime + */ + public function getLocked() { + return $this->locked; + } + /** * Set created * diff --git a/Resources/config/doctrine/Session.orm.yml b/Resources/config/doctrine/Session.orm.yml index 810c4a0..a938147 100644 --- a/Resources/config/doctrine/Session.orm.yml +++ b/Resources/config/doctrine/Session.orm.yml @@ -44,6 +44,9 @@ Rapsys\AirBundle\Entity\Session: temperaturemax: type: float nullable: true + locked: + type: datetime + nullable: true created: type: datetime updated: