Explorar o código

undo...fix...

Luciano Andrade %!s(int64=7) %!d(string=hai) anos
pai
achega
fb60d50563
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      Controller/RESTController.php

+ 0 - 2
Controller/RESTController.php

@@ -233,7 +233,6 @@ abstract class RESTController extends VoryxController
         $form = $this->createForm($this->getFormEntityType(), $entity, array("method" => $request->getMethod()));
         $this->removeExtraFields($request, $form);
         $form->handleRequest($request);
-        $form->submit($request->request->get($form->getName()));
         if ($form->isValid()) {
             $em = $this->getDoctrine()->getManager();
             $em->persist($entity);
@@ -272,7 +271,6 @@ abstract class RESTController extends VoryxController
             // agrego el handler
             $form->handleRequest($request);
             // valido el formulario
-            $form->submit($request->request->get($form->getName()));
             if($form->isValid()) {
                 // actualizo los datos.
                 $em->flush();