]> Raphaël G. Git Repositories - airbundle/commitdiff
Add locked field
authorRaphaël Gertz <git@rapsys.eu>
Wed, 9 Dec 2020 19:47:58 +0000 (20:47 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 9 Dec 2020 19:47:58 +0000 (20:47 +0100)
Entity/Session.php
Resources/config/doctrine/Session.orm.yml

index e2ffc7afd72584d5cfdac4a6534dbd796bd7a72d..20d50ddc8c2bbfa9fa9dfd6f050025aab08ed30c 100644 (file)
@@ -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
         *
index 810c4a0c847c2ab24ef5251a15a3d4484a787039..a9381475e5fe7083dbf4f89484a7b8fb77fd037b 100644 (file)
@@ -44,6 +44,9 @@ Rapsys\AirBundle\Entity\Session:
         temperaturemax:
             type: float
             nullable: true
+        locked:
+            type: datetime
+            nullable: true
         created:
             type: datetime
         updated: