]> Raphaël G. Git Repositories - airbundle/commitdiff
Reverse subscriber/subscription owning side
authorRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 15:43:03 +0000 (16:43 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 15:43:03 +0000 (16:43 +0100)
Resources/config/doctrine/User.orm.yml

index cd5d307a282747832b3ce8c6dbab0ddcbb75313e..600265143341e2a5fcc2e992288a715081cc4781 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:
@@ -52,9 +55,6 @@ Rapsys\AirBundle\Entity\User:
                 inverseJoinColumns:
                     id:
                         name: subscriber_id
                 inverseJoinColumns:
                     id:
                         name: subscriber_id
-        subscriptions:
-            targetEntity: Rapsys\AirBundle\Entity\User
-            mappedBy: subscribers
         locations:
             targetEntity: Rapsys\AirBundle\Entity\Location
             inversedBy: users
         locations:
             targetEntity: Rapsys\AirBundle\Entity\Location
             inversedBy: users