Invalid Code For Form Errors 

see https://github.com/FriendsOfSymfony/FOSRestBundle/issues/577

I have added test but I dont have time now to fix this minor bug :)