fix deprecations: setDefaultOptions -> configureOptions

This commit is contained in:
nobohan
2018-04-04 17:03:32 +02:00
parent 71a375b37d
commit be6d3493ed
6 changed files with 18 additions and 22 deletions

View File

@@ -88,7 +88,7 @@ class CreationPersonType extends AbstractType
->add('lastName')
->add('birthdate', DateType::class, array('required' => false,
'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
->add('gender', new GenderType(), array(
->add('gender', GenderType::class, array(
'required' => true, 'empty_value' => null
))
->add('creation_date', DateType::class, array(