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