mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
fix validation context and upgrade sf3
cfr commit 193460a9a649953c9222cccca7b64f14251de65e
This commit is contained in:
parent
7dfbe88ce6
commit
943cd9f31e
@ -251,9 +251,9 @@ class AccompanyingPeriodController extends Controller
|
|||||||
* @return \Symfony\Component\Validator\ConstraintViolationListInterface
|
* @return \Symfony\Component\Validator\ConstraintViolationListInterface
|
||||||
*/
|
*/
|
||||||
private function _validatePerson(Person $person) {
|
private function _validatePerson(Person $person) {
|
||||||
$errors = $this->get('validator')->validate($person,
|
$errors = $this->get('validator')->validate($person, null,
|
||||||
array('Default'));
|
array('Default'));
|
||||||
$errors_accompanying_period = $this->get('validator')->validate($person,
|
$errors_accompanying_period = $this->get('validator')->validate($person, null,
|
||||||
array('accompanying_period_consistent'));
|
array('accompanying_period_consistent'));
|
||||||
|
|
||||||
foreach($errors_accompanying_period as $error ) {
|
foreach($errors_accompanying_period as $error ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user