From: Raphaƫl Gertz Date: Sun, 29 Aug 2021 04:43:32 +0000 (+0200) Subject: Cleanup X-Git-Tag: 0.3.0~259 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/05b55f89bc508b0d6c43c4d854fb5e9ffdf6484c Cleanup --- 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'));