original_string: public function indexAction(Request $request)
      {
          $em = $this->getDoctrine()->getManager();
          $qb = $em->getRepository(StockChangeLog::class)->createQueryBuilder('s');
          $this->addQueryBuilderSort($qb, 'stockchangelog');
          $paginator = $this->get('knp_paginator')->paginate($qb, $request->query->get('page', 1), 20);
  
          return array(
              'paginator' => $paginator,
          );
      }
code: public function indexAction(Request $request)
      {
          $em = $this->getDoctrine()->getManager();
          $qb = $em->getRepository(StockChangeLog::class)->createQueryBuilder('s');
          $this->addQueryBuilderSort($qb, 'stockchangelog');
          $paginator = $this->get('knp_paginator')->paginate($qb, $request->query->get('page', 1), 20);
  
          return array(
              'paginator' => $paginator,
          );
      }
code_tokens: public function indexAction ( Request $ request ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ qb = $ em -> getRepository ( StockChangeLog :: class ) -> createQueryBuilder ( 's' ) ; $ this -> addQueryBuilderSort ( $ qb , 'stockchangelog' ) ; $ paginator = $ this -> get ( 'knp_paginator' ) -> paginate ( $ qb , $ request -> query -> get ( 'page' , 1 ) , 20 ) ; return array ( 'paginator' => $ paginator , ) ; }
docstring: Lists all StockChangeLog entities.
  
  @Route("/", name="admin_shop_changelog")
  @Method("GET")
  @Template()
docstring_tokens: Lists all StockChangeLog entities .