From 4e2dd7b0482d5ac0d7c031afb5b24061da8d1373 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 27 Feb 2024 16:43:03 +0100 Subject: [PATCH] Reverse subscriber/subscription owning side --- Resources/config/doctrine/User.orm.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.41.1