Skip to content

Commit 02da148

Browse files
committed
use option entry_type instead of type for the collection type with Symfony >= 2.8
see symfony/symfony#15025
1 parent 8f57290 commit 02da148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/ModifySettingsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) {
1919
$useFqcn = method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix');
2020

2121
$builder->add('settings', $useFqcn ? 'Symfony\Component\Form\Extension\Core\Type\CollectionType' : 'collection', array(
22-
'type' => $useFqcn ? 'Craue\ConfigBundle\Form\Type\SettingType' : 'craue_config_setting',
22+
$useFqcn ? 'entry_type' : 'type' => $useFqcn ? 'Craue\ConfigBundle\Form\Type\SettingType' : 'craue_config_setting',
2323
));
2424
}
2525

0 commit comments

Comments
 (0)