From 05b55f89bc508b0d6c43c4d854fb5e9ffdf6484c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 29 Aug 2021 06:43:32 +0200 Subject: [PATCH] Cleanup --- Entity/Dance.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Entity/Dance.php b/Entity/Dance.php index e3779da..c269f32 100644 --- a/Entity/Dance.php +++ b/Entity/Dance.php @@ -55,6 +55,8 @@ class Dance { //Set defaults $this->created = new \DateTime('now'); $this->updated = new \DateTime('now'); + + //Set collections $this->applications = new ArrayCollection(); $this->users = new ArrayCollection(); } @@ -204,7 +206,7 @@ class Dance { * {@inheritdoc} */ public function preUpdate(PreUpdateEventArgs $eventArgs) { - //Check that we have an session instance + //Check that we have a dance instance if (($dance = $eventArgs->getEntity()) instanceof Dance) { //Set updated value $dance->setUpdated(new \DateTime('now')); -- 2.41.0