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

@@ -64,7 +64,7 @@ class PersonType extends AbstractType
->add('firstName')
->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
))
->add('memo', TextareaType::class, array('required' => false))