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