mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix error when having two address at same date
This commit is contained in:
parent
f2948e31de
commit
5ca6a9939c
@ -723,11 +723,11 @@ class Person implements HasCenterInterface {
|
||||
public function isAddressesValid(ExecutionContextInterface $context)
|
||||
{
|
||||
if ($this->hasTwoAdressWithSameValidFromDate()) {
|
||||
$context->addViolationAt(
|
||||
'addresses',
|
||||
'Two addresses has the same validFrom date',
|
||||
array()
|
||||
);
|
||||
$context
|
||||
->buildViolation('Two addresses has the same validFrom date')
|
||||
->atPath('addresses')
|
||||
->addViolation()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user