diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php index 1c1341aa9..eb84684a9 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php @@ -138,6 +138,8 @@ class ApiController extends AbstractCRUDController return $response; } + $this->getDoctrine()->getManager()->flush(); + return $this->json( $entity, Response::HTTP_OK,