title: symfony2 form how to accept json payload from angular resource
body: <p>I'm currently trying to combine a Symfony Form with <code>angularJS</code>... A Service posts data to a form, that should save an entity to the database. Unfortunately, <code>ngResource</code> sends the data as a JSON payload, so that Symfony Forms can't process it... I tried many things on angular side, like changing the headers:</p>
  
  <pre><code>headers : {'Content-Type': 'application/x-www-form-urlencoded'}
  </code></pre>
  
  <p>I couldn't find much more on angular side, so I thought that I could find a Solution on Symfony Side.
  Any Idea how I could get this to work? Angular-Solutions are welcome too of course.</p>