Remove unnecessary option assignment

This commit is contained in:
Sergey Fedotov 2016-04-05 22:57:40 +03:00
parent 5b6da77a96
commit da8a19728b
1 changed files with 0 additions and 1 deletions

View File

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