From e55a7f299331be943d3c3e424db39599988069cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 22 Aug 2025 23:14:11 +0200 Subject: [PATCH] Normalize address search terms by adding `UNACCENT` and `LOWER` transformation to `AddressReferenceRepository`. --- .../ChillMainBundle/Repository/AddressReferenceRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php b/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php index c9cbeb3b7..8f8dcbc77 100644 --- a/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php +++ b/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php @@ -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}%"); }