diff --git a/src/Repository/MemberRepository.php b/src/Repository/MemberRepository.php index b37f078..453269a 100644 --- a/src/Repository/MemberRepository.php +++ b/src/Repository/MemberRepository.php @@ -20,7 +20,7 @@ class MemberRepository extends ServiceEntityRepository public function getCaseMembersByName(MemberCase $case): array { return $this->createQueryBuilder('m') - ->andWhere('m.caseId = :case') + ->andWhere('m.memberCase = :case') ->setParameter('case', $case->getId()->toBinary()) ->orderBy('m.lastName, m.firstName', 'ASC') ->getQuery()