From 2d4ae4bf580cfcb2cbd63e9c7bb0932adfd38e48 Mon Sep 17 00:00:00 2001 From: Lev Shagalov Date: Thu, 23 Oct 2014 20:28:02 +0400 Subject: [PATCH] Fixing put action for proper PUT method handling. --- .../Resources/skeleton/rest/actions/put.php.twig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/put.php.twig b/src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/put.php.twig index 31cf008..083bec5 100644 --- a/src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/put.php.twig +++ b/src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/put.php.twig @@ -20,7 +20,6 @@ {% block method_body %} try { $em = $this->getDoctrine()->getManager(); - $request->setMethod('PATCH'); //Treat all PUTs as PATCH $form = $this->createForm(new {{ entity }}Type(), $entity, array("method" => $request->getMethod())); $this->removeExtraFields($request, $form); $form->handleRequest($request);