Symfony2.4 form 'This form should not contain extra fields' error
I'm trying to build app based on REST api ang AngularJS. I've been following this tutorial http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html but have to change some details ( depreciated methods ) and right now when I post to create new entity I get 'This form should not contain extra fields' error. class MainController extends Controller { public function indexAction(Request $request) { $form = $this->createForm(new TaskType(),null,array('action' => $this->generateUrl('post_tasks').'.json')) ->add('submit','submit'); $note_form = $this->createForm(new NoteType()) ->add('submit'