{"action":"closed","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/585","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/585/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/585/events","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/issues/585","id":21002225,"number":585,"title":"Posting POST/PATCH to a form. submit doesn't bind data.","user":{"login":"richardpi","id":1646139,"avatar_url":"https://avatars.githubusercontent.com/u/1646139?v=3","gravatar_id":"","url":"https://api.github.com/users/richardpi","html_url":"https://github.com/richardpi","followers_url":"https://api.github.com/users/richardpi/followers","following_url":"https://api.github.com/users/richardpi/following{/other_user}","gists_url":"https://api.github.com/users/richardpi/gists{/gist_id}","starred_url":"https://api.github.com/users/richardpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardpi/subscriptions","organizations_url":"https://api.github.com/users/richardpi/orgs","repos_url":"https://api.github.com/users/richardpi/repos","events_url":"https://api.github.com/users/richardpi/events{/privacy}","received_events_url":"https://api.github.com/users/richardpi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2013-10-15T08:15:50Z","updated_at":"2015-07-10T12:22:48Z","closed_at":"2015-07-10T12:22:48Z","body":"symfony 2.3.x has new functionality, where $form->bind($request) was replaced by $form->submit($request), which allows to pass 2nd argument $clearMissing, which is useful if one writes API PATCH methods\r\n\r\nunfortunately compatible version of fos rest bundle with symfony 2.3.x does not bind data if $request is passed as JSON (via e.g. curl). deprecated bind method also doesn't work. \r\n\r\nonly handleRequest seems to work ok, however handleRequest is missing functionality provided by submit method\r\n\r\nfos rest with symfony2.1.x seems to work ok (with bind method)"}}