Remove unnecessary option assignment

This commit is contained in:
Sergey Fedotov 2016-04-05 22:57:40 +03:00
parent 5b6da77a96
commit da8a19728b

View File

@ -28,7 +28,6 @@ class CollectionType extends AbstractType
{ {
if ($options['allow_add'] && $options['prototype']) { if ($options['allow_add'] && $options['prototype']) {
$prototype = $builder->create($options['prototype_name'], $options['type'], array_replace(array( $prototype = $builder->create($options['prototype_name'], $options['type'], array_replace(array(
'required' => $options['required'],
'label' => $options['prototype_name'].'label__', 'label' => $options['prototype_name'].'label__',
), $options['options'])); ), $options['options']));
$builder->setAttribute('prototype', $prototype->getForm()); $builder->setAttribute('prototype', $prototype->getForm());