title: Can't get my form to be valid
body: <p>I want to make a ReST infrastructure with a Symfony server (using FOSRestBundle). 
  there is</p>
  
  <ul>
  <li>a <strong>Contact</strong> entity, (id, name, email)</li>
  <li>a <strong>AddType form</strong> to add a new contact</li>
  </ul>
  
  <p>On the client side, I have a form which sends a POST request whose body is </p>
  
  <p><strong>{"the_name_of_my contact_form":{"name":"foo", "email": "foo@example.org"}}</strong></p>
  
  <p>My controller (which extends FOSRestController) can see the data in the request</p>
  
  <p><strong>$request->request->get($form->getName())</strong> returns <strong>{"name":"foo", "email": "foo@example.org"}</strong></p>
  
  <p>But whether I use <strong>$form->handleRequest($request)</strong> or <strong>$form->submit($data)</strong> </p>
  
  <p><strong>$form->isValid()</strong> is always false</p>
  
  <p>I hope this is clear enough... can anyone help?</p>