From 943cd9f31eba5de0e3964450822cce8b6c39b76c Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 18 Oct 2018 14:57:28 +0200 Subject: [PATCH] fix validation context and upgrade sf3 cfr commit 193460a9a649953c9222cccca7b64f14251de65e --- Controller/AccompanyingPeriodController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/AccompanyingPeriodController.php b/Controller/AccompanyingPeriodController.php index 5af5bc14f..dd6354b20 100644 --- a/Controller/AccompanyingPeriodController.php +++ b/Controller/AccompanyingPeriodController.php @@ -251,9 +251,9 @@ class AccompanyingPeriodController extends Controller * @return \Symfony\Component\Validator\ConstraintViolationListInterface */ private function _validatePerson(Person $person) { - $errors = $this->get('validator')->validate($person, + $errors = $this->get('validator')->validate($person, null, array('Default')); - $errors_accompanying_period = $this->get('validator')->validate($person, + $errors_accompanying_period = $this->get('validator')->validate($person, null, array('accompanying_period_consistent')); foreach($errors_accompanying_period as $error ) {