|
|
|
|
|
|
|
|
'class' => $userClass->name, |
|
|
'class' => $userClass->name, |
|
|
'required' => false, |
|
|
'required' => false, |
|
|
'query_builder'=> function (EntityRepository $er) { |
|
|
'query_builder'=> function (EntityRepository $er) { |
|
|
$query = $er->findByMerchantQuery()->leftJoin('e.groupUsers', 'groupUsers')->addSelect('groupUsers'); |
|
|
|
|
|
|
|
|
$query = $er->findByMerchantQuery() |
|
|
|
|
|
->leftJoin('e.groupUsers', 'groupUsers')->addSelect('groupUsers') |
|
|
|
|
|
->leftJoin('e.supplier', 'supplier')->addSelect('supplier') |
|
|
|
|
|
; |
|
|
return $query; |
|
|
return $query; |
|
|
}, |
|
|
}, |
|
|
'expanded' => false, |
|
|
'expanded' => false, |