original_string: public function indexAction($categoryId)
      {
          $em = $this->getDoctrine()->getManager();
  
          /** @var Category $entity */
          $entity = $em->getRepository('EcommerceBundle:Category')->find($categoryId);
  
          if (!$entity) {
              throw $this->createNotFoundException('Unable to find Category entity.');
          }
  
          return array(
              'category' => $entity,
          );
      }
code: public function indexAction($categoryId)
      {
          $em = $this->getDoctrine()->getManager();
  
          /** @var Category $entity */
          $entity = $em->getRepository('EcommerceBundle:Category')->find($categoryId);
  
          if (!$entity) {
              throw $this->createNotFoundException('Unable to find Category entity.');
          }
  
          return array(
              'category' => $entity,
          );
      }
code_tokens: public function indexAction ( $ categoryId ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; /** @var Category $entity */ $ entity = $ em -> getRepository ( 'EcommerceBundle:Category' ) -> find ( $ categoryId ) ; if ( ! $ entity ) { throw $ this -> createNotFoundException ( 'Unable to find Category entity.' ) ; } return array ( 'category' => $ entity , ) ; }
docstring: Lists all subcategories from a Category entity.
  
  @param int $categoryId The category id
  
  @throws NotFoundHttpException
  @return array
  
  @Route("/")
  @Method("GET")
  @Template("EcommerceBundle:Subcategory:index.html.twig")
docstring_tokens: Lists all subcategories from a Category entity .