]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Dance.php
Remove location short
[airbundle] / Entity / Dance.php
index fa07ba9693b153c6323fdb92cc15e29b5dbb9e94..e3779da83fc03d8558dbaa0c4dead87b3aea33a8 100644 (file)
@@ -52,6 +52,9 @@ class Dance {
         * Constructor
         */
        public function __construct() {
+               //Set defaults
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
                $this->applications = new ArrayCollection();
                $this->users = new ArrayCollection();
        }