X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/57c318ddcf974dfbe261e30b278a835ee12c40be..de28b7451f4dd9cb850e4b5ddac7b610f7ad5913:/Entity/Snippet.php?ds=sidebyside diff --git a/Entity/Snippet.php b/Entity/Snippet.php index 4e9d406..ee5b262 100644 --- a/Entity/Snippet.php +++ b/Entity/Snippet.php @@ -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; } /**