mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
Fix error in new ValidatorInterface signature (during person creation)
This commit is contained in:
parent
c847be8534
commit
674430d692
@ -198,7 +198,7 @@ class PersonController extends Controller
|
|||||||
private function _validatePersonAndAccompanyingPeriod(Person $person)
|
private function _validatePersonAndAccompanyingPeriod(Person $person)
|
||||||
{
|
{
|
||||||
$errors = $this->get('validator')
|
$errors = $this->get('validator')
|
||||||
->validate($person, array('creation'));
|
->validate($person, null, array('creation'));
|
||||||
|
|
||||||
//validate accompanying periods
|
//validate accompanying periods
|
||||||
$periods = $person->getAccompanyingPeriods();
|
$periods = $person->getAccompanyingPeriods();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user