mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-03 15:36:14 +00:00
fix deprecations: add choices_as_values=true + flip contents of choice in ChoiceType
This commit is contained in:
parent
7f6f41a2d8
commit
193b6c3a3b
@ -28,6 +28,7 @@ class GenderType extends AbstractType {
|
|||||||
|
|
||||||
$resolver->setDefaults(array(
|
$resolver->setDefaults(array(
|
||||||
'choices' => $a,
|
'choices' => $a,
|
||||||
|
'choices_as_values' => true,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'empty_value' => null
|
'empty_value' => null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user