FriendsOfSymfony/FOSRestBundle — Issue #173: FOSRestBundle w/JSON & Doctrine Entities + $form->bindRequest()
Author: bzitzow
Created: 2012-01-14 04:19:19+00:00
State: open

I am trying to update a doctrine entity upon HTTP PUT request with JSON Array in the body. It was recommended that I use the $form component to bind the data from the JSON array to the Doctrine entity before persisting, but I have been unsuccessful. The JSON Array key's are the same name as the doctrine entity properties. Does FOSRestBundle convert a PUT request with a JSON array in the request body into a request that is compatible with $form->bindRequest() ??