mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +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(
|
||||
'choices' => array(
|
||||
Person::FEMALE_GENDER => 'Woman',
|
||||
Person::MALE_GENDER => 'Man'
|
||||
'Woman' => Person::FEMALE_GENDER,
|
||||
'Man' => Person::MALE_GENDER
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'multiple' => false,
|
||||
'expanded' => false
|
||||
));
|
||||
|
@ -305,6 +305,7 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
|
||||
'Man' => Person::MALE_GENDER,
|
||||
'Woman' => Person::FEMALE_GENDER
|
||||
],
|
||||
'choices_as_values' => true,
|
||||
'label' => 'Gender',
|
||||
'required' => false
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user