mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix sf3 depreciated addViolationAt() method
cfr vendor/symfony/symfony/UPGRADE-3.0.md:1719
This commit is contained in:
parent
42e33c020c
commit
7dfbe88ce6
@ -224,9 +224,9 @@ class AccompanyingPeriod
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (! $this->isClosingAfterOpening()) {
|
if (! $this->isClosingAfterOpening()) {
|
||||||
$context->addViolationAt('dateClosing',
|
$context->buildViolation('The date of closing is before the date of opening')
|
||||||
'The date of closing is before the date of opening',
|
->atPath('dateClosing')
|
||||||
array(), null);
|
->addViolation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -735,15 +735,15 @@ class Person implements HasCenterInterface {
|
|||||||
|
|
||||||
if ($r !== true) {
|
if ($r !== true) {
|
||||||
if ($r['result'] === self::ERROR_PERIODS_ARE_COLLAPSING) {
|
if ($r['result'] === self::ERROR_PERIODS_ARE_COLLAPSING) {
|
||||||
$context->addViolationAt('accompanyingPeriods',
|
$context->buildViolation('Two accompanying periods have days in commun')
|
||||||
'Two accompanying periods have days in commun',
|
->atPath('accompanyingPeriods')
|
||||||
array());
|
->addViolation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($r['result'] === self::ERROR_ADDIND_PERIOD_AFTER_AN_OPEN_PERIOD) {
|
if ($r['result'] === self::ERROR_ADDIND_PERIOD_AFTER_AN_OPEN_PERIOD) {
|
||||||
$context->addViolationAt('accompanyingPeriods',
|
$context->buildViolation('A period is opened and a period is added after it')
|
||||||
'A period is opened and a period is added after it',
|
->atPath('accompanyingPeriods')
|
||||||
array());
|
->addViolation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user