]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Dance.php
Drop facebook event subscriber handling fb_locale parameter
[airbundle] / 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 defaults
                $this->created = new \DateTime('now');
                $this->updated = new \DateTime('now');
+
+               //Set collections
                $this->applications = new ArrayCollection();
                $this->users = new ArrayCollection();
        }
                $this->applications = new ArrayCollection();
                $this->users = new ArrayCollection();
        }
@@ -204,7 +206,7 @@ class Dance {
         * {@inheritdoc}
         */
        public function preUpdate(PreUpdateEventArgs $eventArgs) {
         * {@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'));
                if (($dance = $eventArgs->getEntity()) instanceof Dance) {
                        //Set updated value
                        $dance->setUpdated(new \DateTime('now'));