public function paginate($page = 1, $maxPerPage = 10, ConnectionInterface $con = null)
    {
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $pager = new PropelModelPager($criteria, $maxPerPage);
        $pager->setPage($page);
        $pager->init($con);

        return $pager;
    }
public function paginate($page = 1, $maxPerPage = 10, ConnectionInterface $con = null)
    {
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $pager = new PropelModelPager($criteria, $maxPerPage);
        $pager->setPage($page);
        $pager->init($con);

        return $pager;
    }
public function paginate ( $ page = 1 , $ maxPerPage = 10 , ConnectionInterface $ con = null ) { $ criteria = $ this -> isKeepQuery ( ) ? clone $ this : $ this ; $ pager = new PropelModelPager ( $ criteria , $ maxPerPage ) ; $ pager -> setPage ( $ page ) ; $ pager -> init ( $ con ) ; return $ pager ; }
Issue a SELECT query based on the current ModelCriteria
and uses a page and a maximum number of results per page
to compute an offset and a limit.

@param int                 $page       number of the page to start the pager on. Page 1 means no offset
@param int                 $maxPerPage maximum number of results per page. Determines the limit
@param ConnectionInterface $con        an optional connection object

@return PropelModelPager a pager object, supporting iteration
Issue a SELECT query based on the current ModelCriteria and uses a page and a maximum number of results per page to compute an offset and a limit .