From 193460a9a649953c9222cccca7b64f14251de65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 20 Apr 2018 14:42:21 +0200 Subject: [PATCH] fix validation context and upgrade sf3 --- Controller/PersonAddressController.php | 4 ++-- Entity/AccompanyingPeriod.php | 2 +- Entity/Person.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/PersonAddressController.php b/Controller/PersonAddressController.php index 026577832..bbece0d6d 100644 --- a/Controller/PersonAddressController.php +++ b/Controller/PersonAddressController.php @@ -299,9 +299,9 @@ class PersonAddressController extends Controller private function validatePerson(Person $person) { $errors = $this->get('validator') - ->validate($person, array('Default')); + ->validate($person, null, array('Default')); $errors_addresses_consistent = $this->get('validator') - ->validate($person, array('addresses_consistent')); + ->validate($person, null, array('addresses_consistent')); foreach($errors_addresses_consistent as $error) { $errors->add($error); diff --git a/Entity/AccompanyingPeriod.php b/Entity/AccompanyingPeriod.php index 7ba651ff5..6aa8a28a1 100644 --- a/Entity/AccompanyingPeriod.php +++ b/Entity/AccompanyingPeriod.php @@ -23,7 +23,7 @@ namespace Chill\PersonBundle\Entity; use Doctrine\ORM\Mapping as ORM; -use Symfony\Component\Validator\ExecutionContextInterface; +use Symfony\Component\Validator\Context\ExecutionContextInterface; /** * AccompanyingPeriod diff --git a/Entity/Person.php b/Entity/Person.php index 5b427f7a4..92220091e 100644 --- a/Entity/Person.php +++ b/Entity/Person.php @@ -22,7 +22,7 @@ namespace Chill\PersonBundle\Entity; * along with this program. If not, see . */ -use Symfony\Component\Validator\Context\ExecutionContextInterface;; +use Symfony\Component\Validator\Context\ExecutionContextInterface; use Chill\MainBundle\Entity\Country; use Chill\PersonBundle\Entity\MaritalStatus; use Doctrine\Common\Collections\ArrayCollection;