diff --git a/Search/PersonSearch.php b/Search/PersonSearch.php index 0c9d0eab4..e94c28079 100644 --- a/Search/PersonSearch.php +++ b/Search/PersonSearch.php @@ -283,7 +283,7 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface, foreach($grams as $key => $gram) { $qb->andWhere($qb->expr() - ->like('UNACCENT(LOWER(CONCAT(p.firstName, \' \', p.lastName)))', ':default_'.$key)) + ->like('p.fullnameCanonical', 'UNACCENT(LOWER(:default_'.$key.'))')) ->setParameter('default_'.$key, '%'.$gram.'%'); } }