Revise getCaseWorkers method to add therapist and possible role
This commit is contained in:
parent
7130cce4a2
commit
ec9abbe5c0
@ -86,8 +86,10 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
|
|||||||
return $this->createQueryBuilder('u')
|
return $this->createQueryBuilder('u')
|
||||||
->orWhere('u.caseWorker = :case_worker')
|
->orWhere('u.caseWorker = :case_worker')
|
||||||
->orWhere('u.caseManager = :case_manager')
|
->orWhere('u.caseManager = :case_manager')
|
||||||
|
->orWhere('u.therapist = :therapist')
|
||||||
->setParameter('case_worker', true)
|
->setParameter('case_worker', true)
|
||||||
->setParameter('case_manager', true)
|
->setParameter('case_manager', true)
|
||||||
|
->setParameter('therapist', true)
|
||||||
->orderBy('u.name', 'ASC')
|
->orderBy('u.name', 'ASC')
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult()
|
->getResult()
|
||||||
|
Loading…
Reference in New Issue
Block a user