]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Snippet.php
Remove donate, link and profile
[airbundle] / Entity / Snippet.php
index 4e9d406c2b10572a3e48a29c6e59a0cc1d6a4c5f..ee5b262e78f600007529b2d12b5782463324ec05 100644 (file)
@@ -96,6 +96,7 @@ class Snippet {
         * Constructor
         */
        public function __construct() {
+               //Set defaults
                $this->description = null;
                $this->class = null;
                $this->short = null;
@@ -105,6 +106,9 @@ class Snippet {
                $this->donate = null;
                $this->link = null;
                $this->profile = null;
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
+               $this->location = null;
        }
 
        /**