Controller/OrderAdminController.php
public function listAction($state = BaseOrder::STATE_IN_PROGRESS, $limit = 10, $offset = 0)
    {
        $or = $this->getDoctrine()->getManager()->getRepository('DyweeOrderBundle:BaseOrder');

        $os = $or->findBy(
            ['state' => $state],
            ['createdAt' => 'desc'],
            $limit,
            $offset
        );

        return $this->render('DyweeOrderBundle:Admin:orderTableRaw.html.twig', ['orderList' => $os]);
    }
public function listAction($state = BaseOrder::STATE_IN_PROGRESS, $limit = 10, $offset = 0)
    {
        $or = $this->getDoctrine()->getManager()->getRepository('DyweeOrderBundle:BaseOrder');

        $os = $or->findBy(
            ['state' => $state],
            ['createdAt' => 'desc'],
            $limit,
            $offset
        );

        return $this->render('DyweeOrderBundle:Admin:orderTableRaw.html.twig', ['orderList' => $os]);
    }
@param string $state
@param int    $limit
@param int    $offset

@return Response