mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Changing validation group : history_consistent -> accompanying_period_consistent
This commit is contained in:
parent
94109db4cf
commit
a7c5f464b2
@ -250,7 +250,7 @@ class AccompanyingPeriodController extends Controller
|
||||
$errors = $this->get('validator')->validate($person,
|
||||
array('Default'));
|
||||
$errors_accompanying_period = $this->get('validator')->validate($person,
|
||||
array('history_consistent'));
|
||||
array('accompanying_period_consistent'));
|
||||
|
||||
foreach($errors_accompanying_period as $error ) {
|
||||
$errors->add($error);
|
||||
|
@ -31,7 +31,7 @@ Chill\PersonBundle\Entity\Person:
|
||||
constraints:
|
||||
- Callback:
|
||||
methods: [isAccompanyingPeriodValid]
|
||||
groups: [history_consistent]
|
||||
groups: [accompanying_period_consistent]
|
||||
|
||||
Chill\PersonBundle\Entity\AccompanyingPeriod:
|
||||
properties:
|
||||
|
Loading…
x
Reference in New Issue
Block a user