residential address at user filter done

This commit is contained in:
Julie Lenaerts 2022-08-09 16:14:41 +02:00
parent 6010559936
commit 5b4b7473c5

View File

@ -26,7 +26,7 @@ class ResidentialAddressAtUserFilter implements FilterInterface
public function alterQuery(QueryBuilder $qb, $data) public function alterQuery(QueryBuilder $qb, $data)
{ {
$qb->resetDQLPart('from'); $qb->resetDQLPart('from');
$qb->from('ChillPersonBundle:Person:ResidentialAddress', 'ra'); $qb->from('ChillPersonBundle:Person\ResidentialAddress', 'ra');
$qb->join('ra.person', 'person'); $qb->join('ra.person', 'person');
$qb->join('person.center', 'center'); $qb->join('person.center', 'center');
@ -42,7 +42,6 @@ class ResidentialAddressAtUserFilter implements FilterInterface
$qb->add('where', $where); $qb->add('where', $where);
dump($qb->getQuery());
} }
public function applyOn() public function applyOn()