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