From db4fdc25e3222572325a73b13a969bbaaaba1990 Mon Sep 17 00:00:00 2001 From: sebastien <dupuy@datakode.fr> Date: Mon, 10 Jun 2024 16:03:22 +0200 Subject: [PATCH] forcing loading collectivities for user --- src/Infrastructure/ORM/User/Mapping/User.orm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/ORM/User/Mapping/User.orm.xml b/src/Infrastructure/ORM/User/Mapping/User.orm.xml index bfba9e6ab..a3717b9f8 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> -- GitLab