title: Validate form in different controller action symfony
body: <p>I have a controller action that returns a form to the view. When the form is submitted, the validation of this form needs to be done in a different action than the action returning the form. </p>
  
  <p>This is a sample of the action that returns the form</p>
  
  <pre><code> /**
       * @Route("/AjaxAddQuestionForm/{section}")
       * @Template
       * @ParamConverter("section", class="AppBundle:Section")
       */
      public function ajaxAddQuestionFormAction(Request $request, $section)
      {
          $question = new Question();
          $question-&gt;setSection($section);
          $addQuestionForm = $this-&gt;createForm(new AddQuestionType(), $question);
  
          return array(
              'section' =&gt; $section,
              'addAjaxQuestionForm' =&gt; $addQuestionForm-&gt;createView(),
          );
      }
  </code></pre>
  
  <p>And this is the action in which I am currently trying to get the validation to work.</p>
  
  <pre><code> /**
       * @Route("/edit/{form}")
       * @Template()
       * @ParamConverter("form", class="AppBundle:Form")
       */
      public function editAction(Request $request, $form)
      {
          $em = $this-&gt;getDoctrine()-&gt;getManager();
  
          (...)
  
           $questionForm = new Question();
           $addQuestionForm = $this-&gt;createForm(new AddQuestionType(), $questionForm);
  
  
          $addQuestionForm-&gt;handleRequest($request);
  
          if ($addQuestionForm-&gt;isValid()) {
              $em-&gt;persist($questionForm);
              $em-&gt;flush();
  
              return $this-&gt;redirectToRoute('app_form_edit', array('form' =&gt; $form_id));
              }
  (...)
  </code></pre>
  
  <p>The problem is that the validation in the second action is never called. Any idea on how I can get this working?</p>