X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/ea9b00a8025f8bbe7a1c28399f7538bea6d60a2c..405e9b313c18da7ce8ef9f8e1c54c26cc6d2dd3b:/Entity/Group.php?ds=sidebyside diff --git a/Entity/Group.php b/Entity/Group.php index 188e1bc..c97515c 100644 --- a/Entity/Group.php +++ b/Entity/Group.php @@ -1,7 +1,7 @@ * @@ -51,7 +51,10 @@ class Group { * @param string $title The group name */ public function __construct(string $title) { + //Set defaults $this->title = $title; + $this->created = new \DateTime('now'); + $this->updated = new \DateTime('now'); $this->users = new ArrayCollection(); }