From 81c24846e34881b05745a24bd4236eed68a42a69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 9 Dec 2020 20:47:58 +0100 Subject: [PATCH] Add locked field --- Entity/Session.php | 27 +++++++++++++++++++++++ Resources/config/doctrine/Session.orm.yml | 3 +++ 2 files changed, 30 insertions(+) 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: -- 2.41.1