From: Raphaƫl Gertz Date: Tue, 27 Feb 2024 15:43:03 +0000 (+0100) Subject: Reverse subscriber/subscription owning side X-Git-Tag: 0.3.0~53 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/4e2dd7b0482d5ac0d7c031afb5b24061da8d1373 Reverse subscriber/subscription owning side --- diff --git a/Resources/config/doctrine/User.orm.yml b/Resources/config/doctrine/User.orm.yml index cd5d307..6002651 100644 --- a/Resources/config/doctrine/User.orm.yml +++ b/Resources/config/doctrine/User.orm.yml @@ -43,7 +43,10 @@ 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: @@ -52,9 +55,6 @@ Rapsys\AirBundle\Entity\User: inverseJoinColumns: id: name: subscriber_id - subscriptions: - targetEntity: Rapsys\AirBundle\Entity\User - mappedBy: subscribers locations: targetEntity: Rapsys\AirBundle\Entity\Location inversedBy: users