public function deleteAction(Page $page, EntityManagerInterface $em)
    {
        $em->remove($page);
        $em->flush();

        return new JsonResponse(true);
    }
public function deleteAction(Page $page, EntityManagerInterface $em)
    {
        $em->remove($page);
        $em->flush();

        return new JsonResponse(true);
    }
public function deleteAction ( Page $ page , EntityManagerInterface $ em ) { $ em -> remove ( $ page ) ; $ em -> flush ( ) ; return new JsonResponse ( true ) ; }
Deletes a blog entity.

@Route("/page/delete/{id}/", name="delete_page")
@Method("DELETE")
@param Page $page
@param EntityManagerInterface $em
@return JsonResponse
Deletes a blog entity .