mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-09 00:04:59 +00:00
Normalize address search terms by adding UNACCENT
and LOWER
transformation to AddressReferenceRepository
.
This commit is contained in:
@@ -86,7 +86,7 @@ final readonly class AddressReferenceRepository implements AddressReferenceRepos
|
||||
$paramId = 0;
|
||||
|
||||
foreach ($terms as $term) {
|
||||
$qb->andWhere('var.address like ?');
|
||||
$qb->andWhere('var.address like UNACCENT(LOWER(?))');
|
||||
$qb->setParameter(++$paramId, "%{$term}%");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user