X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/e10e8c1462bcbd1b4826a4199427547568197b49..dca2abfc031c68f180052f935cc72ff3308f2111:/Resources/config/doctrine/Application.orm.yml?ds=sidebyside

diff --git a/Resources/config/doctrine/Application.orm.yml b/Resources/config/doctrine/Application.orm.yml
index 338d0c8..38de0fe 100644
--- a/Resources/config/doctrine/Application.orm.yml
+++ b/Resources/config/doctrine/Application.orm.yml
@@ -21,13 +21,24 @@ 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
-    oneToMany:
-        votes:
-            targetEntity: Rapsys\AirBundle\Entity\Vote
-            mappedBy: application
+    lifecycleCallbacks:
+        preUpdate: ['preUpdate']
+#    oneToMany:
+#        votes:
+#            targetEntity: Rapsys\AirBundle\Entity\Vote
+#            mappedBy: application
+#    indexes:
+#        #XXX: used in SessionRepository::XXX
+#        id_user:
+#            columns: [ id, user_id ]
+#        id_user_canceled:
+#            columns: [ id, user_id, canceled ]