public function indexAction() {
        $em = $this->getDoctrine()->getManager();
        $rootName = $this->container->getParameter('flowcode_news.root_category');
        $root = $em->getRepository('AmulenClassificationBundle:Category')->findOneBy(array("name" => $rootName));
        $entities = $em->getRepository('AmulenClassificationBundle:Category')->getChildren($root);

        return array(
            'entities' => $entities,
            'rootcategory' => $root,
        );
    }
public function indexAction() {
        $em = $this->getDoctrine()->getManager();
        $rootName = $this->container->getParameter('flowcode_news.root_category');
        $root = $em->getRepository('AmulenClassificationBundle:Category')->findOneBy(array("name" => $rootName));
        $entities = $em->getRepository('AmulenClassificationBundle:Category')->getChildren($root);

        return array(
            'entities' => $entities,
            'rootcategory' => $root,
        );
    }
public function indexAction ( ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ rootName = $ this -> container -> getParameter ( 'flowcode_news.root_category' ) ; $ root = $ em -> getRepository ( 'AmulenClassificationBundle:Category' ) -> findOneBy ( array ( "name" => $ rootName ) ) ; $ entities = $ em -> getRepository ( 'AmulenClassificationBundle:Category' ) -> getChildren ( $ root ) ; return array ( 'entities' => $ entities , 'rootcategory' => $ root , ) ; }
Lists all Category entities.

@Route("/", name="admin_news_category")
@Method("GET")
@Template()
Lists all Category entities .