Skip to content

Commit

Permalink
use option entry_type instead of type for the collection type wit…
Browse files Browse the repository at this point in the history
…h Symfony >= 2.8

see symfony/symfony#15025
  • Loading branch information
craue committed Oct 20, 2015
1 parent 8f57290 commit 02da148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/ModifySettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) {
$useFqcn = method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix');

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

Expand Down

0 comments on commit 02da148

Please sign in to comment.