mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add person detection improvement: inversion firstName<->lastName
This commit is contained in:
@@ -302,7 +302,9 @@ class PersonController extends Controller
|
||||
|
||||
$dql = 'SELECT p from ChillPersonBundle:Person p WHERE '
|
||||
. 'LOWER(p.firstName) LIKE LOWER(:firstName)'
|
||||
. ' OR LOWER(p.lastName) LIKE LOWER(:lastName)';
|
||||
. ' OR LOWER(p.lastName) LIKE LOWER(:lastName)'
|
||||
. ' OR LOWER(p.firstName) LIKE LOWER(:lastName)'
|
||||
. ' OR LOWER(p.lastName) LIKE LOWER(:firstName)';
|
||||
|
||||
$query->setParameter('firstName', $form['firstName']->getData())
|
||||
->setParameter('lastName', $form['lastName']->getData());
|
||||
|
Reference in New Issue
Block a user