How to dynamically add's collections within collections in Symfony2 form types
问题 I have 3 form types in symfony2 FaultType which is the parent of all next collections <?php namespace My\FaultBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilder; class FaultType extends AbstractType { public function buildForm(FormBuilder $builder, array $options) { $builder ->add('title') ->add('steps', 'collection', array( 'type' => new StepType(), 'allow_add' => true, 'prototype' => true, 'by_reference' => false, )) ->add('created') ->add('updated'