Create 2 different entities with same form in Symfony 2
Is it possible to create 2 related entities with the same form and action? If yes, how? I want to create a new User and its related Questionnaire in a 1step registration. Thanks, Luca You can create a form type for related entity (Questionnaire) and use it as a field type in User form type. It's called form nesting. // src/Acme/DemoBundle/Form/Type/QuestionnaireType.php namespace Acme\DemoBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; class QuestionnaireType extends AbstractType { public function buildForm(FormBuilderInterface