From ec9abbe5c04652d91b481171e64ce91d51a747c7 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 10 Dec 2024 23:11:51 -0500 Subject: [PATCH] Revise getCaseWorkers method to add therapist and possible role --- src/Repository/UserRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Repository/UserRepository.php b/src/Repository/UserRepository.php index f46643c..3b3872e 100644 --- a/src/Repository/UserRepository.php +++ b/src/Repository/UserRepository.php @@ -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()