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,
        );
    }
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,
        );
    }
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 , ) ; }
Lists all StockChangeLog entities.

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