mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +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)
|
public function isAddressesValid(ExecutionContextInterface $context)
|
||||||
{
|
{
|
||||||
if ($this->hasTwoAdressWithSameValidFromDate()) {
|
if ($this->hasTwoAdressWithSameValidFromDate()) {
|
||||||
$context->addViolationAt(
|
$context
|
||||||
'addresses',
|
->buildViolation('Two addresses has the same validFrom date')
|
||||||
'Two addresses has the same validFrom date',
|
->atPath('addresses')
|
||||||
array()
|
->addViolation()
|
||||||
);
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user