src/Flowcode/ShopBundle/Service/ProductOrderService.php
public function findAll($page = 1, $max = 50)
    {
        $offset = (($page - 1) * $max);
        $productOrders = $this->productOrderRepository->findBy(array(), array(), $max, $offset);
        return $productOrders;
    }
public function findAll($page = 1, $max = 50)
    {
        $offset = (($page - 1) * $max);
        $productOrders = $this->productOrderRepository->findBy(array(), array(), $max, $offset);
        return $productOrders;
    }
public function findAll ( $ page = 1 , $ max = 50 ) { $ offset = ( ( $ page - 1 ) * $ max ) ; $ productOrders = $ this -> productOrderRepository -> findBy ( array ( ) , array ( ) , $ max , $ offset ) ; return $ productOrders ; }
Find al ProductOrders with pagination options.
@param  integer $page [description]
@param  integer $max [description]
@return ArrayCollection        ProductOrders.
Find al ProductOrders with pagination options .