]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/User.orm.yml
Rename rapsysair:calendar2 command to rapsysair:calendar
[airbundle] / Resources / config / doctrine / User.orm.yml
index cd5d307a282747832b3ce8c6dbab0ddcbb75313e..fcc5712ab64019680e735b7b42974b1d4a6528ae 100644 (file)
@@ -43,7 +43,10 @@ Rapsys\AirBundle\Entity\User:
                         name: dance_id
         subscribers:
             targetEntity: Rapsys\AirBundle\Entity\User
                         name: dance_id
         subscribers:
             targetEntity: Rapsys\AirBundle\Entity\User
-            inversedBy: subscriptions
+            mappedBy: subscriptions
+        subscriptions:
+            targetEntity: Rapsys\AirBundle\Entity\User
+            inversedBy: subscribers
             joinTable:
                 name: users_subscriptions
                 joinColumns:
             joinTable:
                 name: users_subscriptions
                 joinColumns:
@@ -51,10 +54,7 @@ Rapsys\AirBundle\Entity\User:
                         name: user_id
                 inverseJoinColumns:
                     id:
                         name: user_id
                 inverseJoinColumns:
                     id:
-                        name: subscriber_id
-        subscriptions:
-            targetEntity: Rapsys\AirBundle\Entity\User
-            mappedBy: subscribers
+                        name: subscribed_id
         locations:
             targetEntity: Rapsys\AirBundle\Entity\Location
             inversedBy: users
         locations:
             targetEntity: Rapsys\AirBundle\Entity\Location
             inversedBy: users