]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Location.php
Add defaults
[airbundle] / Entity / Location.php
index 4af12808f9cf23e92cd57565941383fe03ee3048..57af698c4ced30112a6c7fcd7d67939ffe248967 100644 (file)
@@ -87,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();