title: How to bind Symfony2 form with an array (not a request)?
body: <p>Let say I have an HTML form with bunch of fields. Some fields belong to Product, some to Order, some to Other. When the form is submitted I want to take that request and then create Symfony forms for Product, Order, and Other in controller. Then I want to take partial form data and bind it with appropriate forms. An example would something like this:</p>
  
  <pre><code>$productArray = array('name'=&gt;$request-&gt;get('name'));
  $pf = $this-&gt;createForm(new \MyBundle\Form\ProductType(), $product);
  $pf-&gt;bind($productArray);
  if($pf-&gt;isValid()) {
    // submit product data
  }
  
  // Do same for Order (but use order data)
  
  // Do same for Other (but use other data)
  </code></pre>
  
  <p>The thing is when I try to do it, I can't get $form->isValid() method working. It seems that bind() step fails. I have a suspicion that it might have to do with the form token, but I not sure how to fix it. Again, I build my own HTML form in a view (I did not use form_widget(), cause of all complications it would require to merge bunch of FormTypes into one somehow). I just want a very simple way to use basic HTML form together with Symfony form feature set.</p>
  
  <p>Can anyone tell me is this even possible with Symfony and how do I go about doing it? </p>