]> Raphaël G. Git Repositories - airbundle/commitdiff
Cleanup
authorRaphaël Gertz <git@rapsys.eu>
Sun, 29 Aug 2021 04:43:32 +0000 (06:43 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 29 Aug 2021 04:43:32 +0000 (06:43 +0200)
Entity/Dance.php

index e3779da83fc03d8558dbaa0c4dead87b3aea33a8..c269f32d196a33dc200c32ad9e75e3809e6595aa 100644 (file)
@@ -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'));