]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Application.orm.yml
Add dance link
[airbundle] / Resources / config / doctrine / Application.orm.yml
index e52cc6ea3926752c8f386148d13b97e673e2e3e4..38de0fea3353d26dd3f551551bd82b91e8fe7da0 100644 (file)
@@ -21,12 +21,17 @@ Rapsys\AirBundle\Entity\Application:
         updated:
             type: datetime
     manyToOne:
+        dance:
+            targetEntity: Rapsys\AirBundle\Entity\Dance
+            inversedBy: applications
         session:
             targetEntity: Rapsys\AirBundle\Entity\Session
             inversedBy: applications
         user:
             targetEntity: Rapsys\AirBundle\Entity\User
             inversedBy: applications
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']
 #    oneToMany:
 #        votes:
 #            targetEntity: Rapsys\AirBundle\Entity\Vote