Revise getCaseWorkers method to add therapist and possible role

This commit is contained in:
Ryan Prather 2024-12-10 23:11:51 -05:00
parent 7130cce4a2
commit ec9abbe5c0

View File

@ -86,8 +86,10 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
return $this->createQueryBuilder('u')
->orWhere('u.caseWorker = :case_worker')
->orWhere('u.caseManager = :case_manager')
->orWhere('u.therapist = :therapist')
->setParameter('case_worker', true)
->setParameter('case_manager', true)
->setParameter('therapist', true)
->orderBy('u.name', 'ASC')
->getQuery()
->getResult()