protected function addPaging()
    {
        $limit = $this->parser->getLimit();
        $offset = $this->parser->getOffset();

        if ($offset <= 0) {
            $skip = 0;
        }
        else {
            $skip = $offset;
        }

        $this->query->skip($skip);

        $this->query->take($limit);

        return $this;
    }
protected function addPaging()
    {
        $limit = $this->parser->getLimit();
        $offset = $this->parser->getOffset();

        if ($offset <= 0) {
            $skip = 0;
        }
        else {
            $skip = $offset;
        }

        $this->query->skip($skip);

        $this->query->take($limit);

        return $this;
    }
protected function addPaging ( ) { $ limit = $ this -> parser -> getLimit ( ) ; $ offset = $ this -> parser -> getOffset ( ) ; if ( $ offset <= 0 ) { $ skip = 0 ; } else { $ skip = $ offset ; } $ this -> query -> skip ( $ skip ) ; $ this -> query -> take ( $ limit ) ; return $ this ; }
Adds paging limit and offset to SQL query

@return $this
Adds paging limit and offset to SQL query