public function removeCostCategoryNgAction($costCategory_id) { $em = $this->getDoctrine()->getManager(); $response = new Response(json_encode(array("result" => CostCategory::removeCostCategoryById($em, $costCategory_id)))); $response->headers->set('Content-Type', 'application/json'); return $response; }