mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch '155-fix-regulation-list-postal-code-search' into 'master'
Feature: in regulation list, search by postal code instead of postal code's string content Closes #155 See merge request Chill-Projet/chill-bundles!594
This commit is contained in:
commit
48b3ed0a1f
7
.changes/unreleased/Feature-20230926-164441.yaml
Normal file
7
.changes/unreleased/Feature-20230926-164441.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
kind: Feature
|
||||||
|
body: "The regulation list load accompanying periods by exact postal code (address
|
||||||
|
associated with postal code), and not by the content of the postal code (postal
|
||||||
|
code with same code's string)"
|
||||||
|
time: 2023-09-26T16:44:41.414746336+02:00
|
||||||
|
custom:
|
||||||
|
Issue: "155"
|
@ -79,11 +79,10 @@ final readonly class AccompanyingPeriodACLAwareRepository implements Accompanyin
|
|||||||
Join::WITH,
|
Join::WITH,
|
||||||
'COALESCE(IDENTITY(person_address.address), IDENTITY(location_history.addressLocation)) = address.id'
|
'COALESCE(IDENTITY(person_address.address), IDENTITY(location_history.addressLocation)) = address.id'
|
||||||
)
|
)
|
||||||
->join('address.postcode', 'postcode')
|
|
||||||
->andWhere(
|
->andWhere(
|
||||||
$qb->expr()->in('postcode.code', ':postal_codes')
|
$qb->expr()->in('address.postcode', ':postal_codes')
|
||||||
)
|
)
|
||||||
->setParameter('postal_codes', array_map(fn (PostalCode $postalCode) => $postalCode->getCode(), $postalCodes));
|
->setParameter('postal_codes', $postalCodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user