From: Raphaƫl Gertz Date: Wed, 9 Dec 2020 19:47:58 +0000 (+0100) Subject: Add locked field X-Git-Tag: 0.1.6~19 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/81c24846e34881b05745a24bd4236eed68a42a69?ds=sidebyside;hp=0f928f45c1d8cd1e9c012a33aaa1f8a113e217b3 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: