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