From 87cf8d737ecd8b93bb41af928000abc38e0a024b Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 12 Jan 2022 20:38:09 +0100 Subject: [PATCH] remove dump --- src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php index 89125b67f..cfbe811fa 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php @@ -162,7 +162,7 @@ class ApiController extends AbstractCRUDController } catch (NotEncodableValueException $e) { throw new BadRequestException('invalid json', 400, $e); } - dump($entity); + $errors = $this->validate($action, $request, $_format, $entity); $response = $this->onAfterValidation($action, $request, $_format, $entity, $errors); @@ -177,7 +177,7 @@ class ApiController extends AbstractCRUDController return $response; } - dump('before flush'); + $this->getDoctrine()->getManager()->flush(); $response = $this->onAfterFlush($action, $request, $_format, $entity, $errors); @@ -351,7 +351,6 @@ class ApiController extends AbstractCRUDController $default, $this->getContextForSerialization($action, $request, $_format, $entity) ); - dump($context); return $this->getSerializer()->deserialize($request->getContent(), $this->getEntityClass(), $_format, $context); }