Add getCaseWorkers method
This commit is contained in:
parent
4c9f9ca203
commit
2c623fd902
@ -81,6 +81,19 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCaseWorkers(): array
|
||||||
|
{
|
||||||
|
return $this->createQueryBuilder('u')
|
||||||
|
->orWhere('u.caseWorker = :case_worker')
|
||||||
|
->orWhere('u.caseManager = :case_manager')
|
||||||
|
->setParameter('case_worker', true)
|
||||||
|
->setParameter('case_manager', true)
|
||||||
|
->orderBy('u.name', 'ASC')
|
||||||
|
->getQuery()
|
||||||
|
->getResult()
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * @return User[] Returns an array of User objects
|
// * @return User[] Returns an array of User objects
|
||||||
// */
|
// */
|
||||||
|
Loading…
Reference in New Issue
Block a user