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,
        );
    }