From 193b6c3a3b8c1e562b45c1929ddbcbd8290e38e4 Mon Sep 17 00:00:00 2001 From: nobohan Date: Wed, 4 Apr 2018 22:02:21 +0200 Subject: [PATCH] fix deprecations: add choices_as_values=true + flip contents of choice in ChoiceType --- Form/Type/GenderType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Form/Type/GenderType.php b/Form/Type/GenderType.php index 3f996f0cb..674de880d 100644 --- a/Form/Type/GenderType.php +++ b/Form/Type/GenderType.php @@ -28,6 +28,7 @@ class GenderType extends AbstractType { $resolver->setDefaults(array( 'choices' => $a, + 'choices_as_values' => true, 'expanded' => true, 'multiple' => false, 'empty_value' => null