fix sf4 deprecated: remove choices_as_values form option

This commit is contained in:
Tchama 2020-07-22 17:05:24 +02:00
parent 05868b398e
commit 1d8f72bc14
6 changed files with 0 additions and 6 deletions

View File

@ -81,7 +81,6 @@ class CountryOfBirthAggregator implements AggregatorInterface,
'Group by continents' => 'continent',
'Group by country' => 'country'
),
'choices_as_values' => true,
'expanded' => true,
'multiple' => false
));

View File

@ -80,7 +80,6 @@ class NationalityAggregator implements AggregatorInterface,
'Group by continents' => 'continent',
'Group by country' => 'country'
),
'choices_as_values' => true,
'expanded' => true,
'multiple' => false
));

View File

@ -98,7 +98,6 @@ class ListPerson implements ListInterface, ExportElementValidatedInterface
'multiple' => true,
'expanded' => true,
'choices' => $choices,
'choices_as_values' => true,
'label' => 'Fields to include in export',
'choice_attr' => function($val, $key, $index) {
// add a 'data-display-target' for address fields

View File

@ -66,7 +66,6 @@ class GenderFilter implements FilterInterface,
'Both' => Person::BOTH_GENDER,
'Not given' => 'null'
),
'choices_as_values' => true,
'multiple' => true,
'expanded' => true
));

View File

@ -29,7 +29,6 @@ class GenderType extends AbstractType {
$resolver->setDefaults(array(
'choices' => $a,
'choices_as_values' => true,
'expanded' => true,
'multiple' => false,
'placeholder' => null

View File

@ -333,7 +333,6 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
'Man' => Person::MALE_GENDER,
'Woman' => Person::FEMALE_GENDER
],
'choices_as_values' => true,
'label' => 'Gender',
'required' => false
])