original_string: 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,
          );
      }
code: 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,
          );
      }
code_tokens: 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 , ) ; }
docstring: Lists all Category entities.
  
  @Route("/", name="admin_news_category")
  @Method("GET")
  @Template()
docstring_tokens: Lists all Category entities .