mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
parent
be6d3493ed
commit
b004c65ec1
@ -50,9 +50,10 @@ class GenderFilter implements FilterInterface,
|
|||||||
{
|
{
|
||||||
$builder->add('accepted_genders', ChoiceType::class, array(
|
$builder->add('accepted_genders', ChoiceType::class, array(
|
||||||
'choices' => array(
|
'choices' => array(
|
||||||
Person::FEMALE_GENDER => 'Woman',
|
'Woman' => Person::FEMALE_GENDER,
|
||||||
Person::MALE_GENDER => 'Man'
|
'Man' => Person::MALE_GENDER
|
||||||
),
|
),
|
||||||
|
'choices_as_values' => true,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => false
|
'expanded' => false
|
||||||
));
|
));
|
||||||
|
@ -305,6 +305,7 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
|
|||||||
'Man' => Person::MALE_GENDER,
|
'Man' => Person::MALE_GENDER,
|
||||||
'Woman' => Person::FEMALE_GENDER
|
'Woman' => Person::FEMALE_GENDER
|
||||||
],
|
],
|
||||||
|
'choices_as_values' => true,
|
||||||
'label' => 'Gender',
|
'label' => 'Gender',
|
||||||
'required' => false
|
'required' => false
|
||||||
])
|
])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user