mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
add person search functionality
create test to match refs #377 and adapt fixtures for tests implement search in person bundle
This commit is contained in:
@@ -192,8 +192,8 @@ class PersonSearch extends AbstractSearch
|
||||
|
||||
foreach($grams as $key => $gram) {
|
||||
$qb->andWhere($qb->expr()
|
||||
->like('LOWER(CONCAT(p.firstName, \' \', p.lastName))', ':default'))
|
||||
->setParameter('default', '%'.$gram.'%');
|
||||
->like('LOWER(CONCAT(p.firstName, \' \', p.lastName))', ':default_'.$key))
|
||||
->setParameter('default_'.$key, '%'.$gram.'%');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user