]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Location.php
Rename title to name
[airbundle] / Entity / Location.php
index 6e66cea61a45df62a33d9731308a0a984fb0e492..57af698c4ced30112a6c7fcd7d67939ffe248967 100644 (file)
@@ -28,11 +28,6 @@ class Location {
         */
        private $title;
 
-       /**
-        * @var string
-        */
-       private $short;
-
        /**
         * @var string
         */
@@ -92,6 +87,9 @@ class Location {
         * Constructor
         */
        public function __construct() {
+               //Set defaults
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
                $this->sessions = new ArrayCollection();
                $this->snippets = new ArrayCollection();
                $this->users = new ArrayCollection();
@@ -128,28 +126,6 @@ class Location {
                return $this->title;
        }
 
-       /**
-        * Set short
-        *
-        * @param string $short
-        *
-        * @return Location
-        */
-       public function setShort(string $short): Location {
-               $this->short = $short;
-
-               return $this;
-       }
-
-       /**
-        * Get short
-        *
-        * @return string
-        */
-       public function getShort(): string {
-               return $this->short;
-       }
-
        /**
         * Set address
         *