[WIP] Add PostalCodeForAddressReferenceRepository and associated tests

Introduced `PostalCodeForAddressReferenceRepository` and its interface to support optimized postal code search using materialized views. Updated `AddressReferenceRepository` to improve query handling. Added test coverage for the new repository functionality.
This commit is contained in:
2025-08-15 23:17:10 +02:00
parent 0987b575ab
commit 34b3e290e1
4 changed files with 149 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ final readonly class AddressReferenceRepository implements AddressReferenceRepos
$paramId = 0;
foreach ($terms as $k => $term) {
foreach ($terms as $term) {
$qb->andWhere('var.address like ?');
$qb->setParameter(++$paramId, "%{$term}%");
}