In my case the solution was really simple, just add allow_add to your collection field,
below my example
->add('Details', 'collection', array(
'type' => new DetailsType(),
'allow_add' => true,
'allow_delete' => true,
'label' => ' '
))
You can also check the official documentation for this issue
http://symfony.com/doc/current/cookbook/form/form_collections.html
The first thing you need to do is to let the form collection know that it will receive an unknown number of tags. So far you've added two tags and the form type expects to receive exactly two, otherwise an error will be thrown: This form should not contain extra fields. To make this flexible, add the allow_add option to your collection field.