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:
2015-01-04 01:59:49 +01:00
parent 383fe786c7
commit e02a10fdfa
4 changed files with 313 additions and 38 deletions

View File

@@ -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.'%');
}
}