Commit 193460a9 authored by Julien Fastré's avatar Julien Fastré

fix validation context and upgrade sf3

parent 7c4610fa
Pipeline #48613 failed with stages
in 4 minutes and 1 second
......@@ -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);
......
......@@ -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
......
......@@ -22,7 +22,7 @@ namespace Chill\PersonBundle\Entity;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment