diff --git a/src/Infrastructure/ORM/User/Mapping/User.orm.xml b/src/Infrastructure/ORM/User/Mapping/User.orm.xml index bfba9e6abbfb0073cdbbac4e46f0138844c03bdf..a3717b9f8780e35af677a645cddb29bdac3c060e 100644 --- a/src/Infrastructure/ORM/User/Mapping/User.orm.xml +++ b/src/Infrastructure/ORM/User/Mapping/User.orm.xml @@ -37,7 +37,7 @@ <one-to-many field="notifications" target-entity="App\Domain\Notification\Model\NotificationUser" mapped-by="user" /> <many-to-one field="collectivity" target-entity="App\Domain\User\Model\Collectivity" inversed-by="users" fetch="EAGER"/> - <many-to-many field="collectivitesReferees" target-entity="App\Domain\User\Model\Collectivity" inversed-by="userReferents"> + <many-to-many fetch="EAGER" field="collectivitesReferees" target-entity="App\Domain\User\Model\Collectivity" inversed-by="userReferents"> <join-table name="user_collectivite_referent"> <join-columns><join-column on-delete="CASCADE"/> </join-columns>