From: Raphaël Gertz <git@rapsys.eu>
Date: Sat, 28 Aug 2021 09:08:26 +0000 (+0200)
Subject: Initialize all fields
X-Git-Tag: 0.2.0~27
X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/0929c559670ac8d386a047789712e6164a640326

Initialize all fields
Cleanup
---

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 @@
 <?php declare(strict_types=1);
 
 /*
- * This file is part of the Rapsys PackBundle package.
+ * This file is part of the Rapsys UserBundle package.
  *
  * (c) Raphaël Gertz <symfony@rapsys.eu>
  *
@@ -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();
 	}