title: FosRestBundele PUT Method doesn't work with Forms but POST or GET works perfectly
body: <p>I'm trying to build a simple Restful-Service with Symfony2 and the FosRestBundle. </p>
  
  <p>If I send my request with the <code>GET</code> or <code>POST</code> method the response comes as expected.</p>
  
  <p>If I use the <code>PUT</code> or <code>PATCH</code> method the result is empty.</p>
  
  <p><strong>FormType</strong>
      
  
  <pre><code>namespace MobileService\UserBundle\Form;
  
  use Symfony\Component\Form\AbstractType;
  use Symfony\Component\Form\FormBuilderInterface;
  use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  
  class CurrentLocationType extends AbstractType
  {
  /**
   * @param FormBuilderInterface $builder
   * @param array $options
   */
  public function buildForm(FormBuilderInterface $builder, array $options)
  {
      $builder
          -&gt;add('latitude')
          -&gt;add('longitude')
          -&gt;add('city')
          -&gt;add('zip')
      ;
  }
  
  /**
   * @param OptionsResolverInterface $resolver
   */
  public function setDefaultOptions(OptionsResolverInterface $resolver)
  {
      $resolver-&gt;setDefaults(array(
          'data_class' =&gt; 'MobileService\UserBundle\Entity\CurrentLocation',
          'csrf_protection' =&gt; false
      ));
  }
  
  /**
   * @return string
   */
  public function getName()
  {
      return '';
  }
  }
  </code></pre>
  
  <p>My Controller's <code>putAction($id)</code> and <code>postAction($id)</code> are exactly the same.</p>
  
  <p><strong>Controller/Action</strong></p>
  
  <pre><code>public function putAction($id)
  {
      $request = $this-&gt;getRequest();
      $method=$request-&gt;getMethod();
  
      $em = $this-&gt;getDoctrine()-&gt;getManager();
      $location = $em-&gt;getRepository('MobileServiceUserBundle:CurrentLocation')-&gt;find($id);
  
      $form = $this-&gt;createForm(new CurrentLocationType(), $location, array('method' =&gt; $method));
      $form-&gt;submit($request, false);
  
      if ($form-&gt;isValid()) {
          $em-&gt;persist($location);
          $em-&gt;flush();
      }
      else die('Invalid form.');
  
      return array(
          'location' =&gt; $form-&gt;getData(),
      );
  }
  </code></pre>
  
  <p>Result with <code>PUT</code> request:</p>
  
  <pre><code>{"location":{"id":1,"latitude":0,"longitude":0,"city":"","zip":0}}
  </code></pre>
  
  <p>Result with <code>POST</code> request:</p>
  
  <pre><code>{"location":{"id":1,"latitude":51.4681,"longitude":6.9174,"city":"Essen","zip":451361}}
  </code></pre>
  
  <p><strong>The output of console route:debug</strong></p>
  
  <pre><code>new_profiles                      GET    ANY    ANY  /profiles/new.{_format}           
  get_profiles                      GET    ANY    ANY  /profiles/{id}.{_format}          
  get_locations                     GET    ANY    ANY  /locations.{_format}              
  get_location                      GET    ANY    ANY  /locations/{id}.{_format}         
  post_locations                    POST   ANY    ANY  /locations.{_format}              
  put_location                      PUT    ANY    ANY  /locations/{id}.{_format}         
  get_images                        GET    ANY    ANY  /images.{_format}   
  </code></pre>