public function limit($limit, $offset = NULL) {
		if ($this->selection)
			$this->selection->limit($limit, $offset);
		else
			throw new RepositoryException("Before using the function limit(...) call read(...).");
		return $this;
	}
public function limit($limit, $offset = NULL) {
		if ($this->selection)
			$this->selection->limit($limit, $offset);
		else
			throw new RepositoryException("Before using the function limit(...) call read(...).");
		return $this;
	}
public function limit ( $ limit , $ offset = NULL ) { if ( $ this -> selection ) $ this -> selection -> limit ( $ limit , $ offset ) ; else throw new RepositoryException ( "Before using the function limit(...) call read(...)." ) ; return $ this ; }
Sets limit clause, more calls rewrite old values.

@param int $limit
@param int $offset
@return BaseRepository
@throws RepositoryException
Sets limit clause more calls rewrite old values .