fix choice deprecation with choices_as_values

This commit is contained in:
Tchama 2020-09-08 15:41:13 +02:00
parent 94d446f5d4
commit df1c8178ec

View File

@ -29,7 +29,6 @@ class ChoiceWithOtherType extends AbstractType
$options['expanded'] = true;
// adding a default value for choice
$options['empty_data'] = null;
$options['choices_as_values'] = true;
$builder
->add('_other', TextType::class, array('required' => false))