From 4410d36adc12ea31e92ae01163fd4d69238d501a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 11:08:04 +0200 Subject: [PATCH] Initialize all fields Cleanup --- Entity/Civility.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Entity/Civility.php b/Entity/Civility.php index 4d2671a..9ec56e9 100644 --- a/Entity/Civility.php +++ b/Entity/Civility.php @@ -1,7 +1,7 @@ * @@ -51,7 +51,10 @@ class Civility { * @param string $title The civility 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(); } -- 2.41.1