X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/f0ed7af138b95f31354f8d5a37cb4cd27b902a75..4315e1997c02dbf7a08be4ee55ea854046c5b92d:/Entity/Dance.php 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'));