]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Slot.php
Add support for bundle named entity
[airbundle] / Entity / Slot.php
index c5fcd86771529d784deea742fc2c368fb4253755..116c29fcd6576e081fb21d377a8e9d7c808aa783 100644 (file)
@@ -47,6 +47,9 @@ class Slot {
         * Constructor
         */
        public function __construct() {
+               //Set defaults
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
                $this->sessions = new ArrayCollection();
        }