just mark other uses with mainScope and userJob !!

This commit is contained in:
2023-10-03 15:38:59 +02:00
parent c6a06ebaf9
commit d6a1044585
3 changed files with 6 additions and 6 deletions

View File

@@ -59,10 +59,10 @@ final readonly class UserExportController
'label',
'mainCenter_id' ,
'mainCenter_name',
'mainScope_id',
'mainScope_name',
'userJob_id',
'userJob_name',
'mainScope_id', ///
'mainScope_name', ///
'userJob_id', ///
'userJob_name', ///
'currentLocation_id',
'currentLocation_name',
'mainLocation_id',

View File

@@ -108,7 +108,7 @@ final readonly class UserRepository implements UserRepositoryInterface
LEFT JOIN u.mainScope mainScope
LEFT JOIN u.userJob userJob
ORDER BY u.label
DQL);
DQL); /// mainScope userJob
$query = $this->entityManager->createQuery($dql)
->setHydrationMode(AbstractQuery::HYDRATE_ARRAY)