public function getByCriteria(CriteriaInterface $criteria)
	{
		$this->resetCriteria();
		$this->pushCriteria($criteria);

		return $this->fetchMany($this->newQuery());
	}
public function getByCriteria(CriteriaInterface $criteria)
	{
		$this->resetCriteria();
		$this->pushCriteria($criteria);

		return $this->fetchMany($this->newQuery());
	}
public function getByCriteria ( CriteriaInterface $ criteria ) { $ this -> resetCriteria ( ) ; $ this -> pushCriteria ( $ criteria ) ; return $ this -> fetchMany ( $ this -> newQuery ( ) ) ; }
Get a collection of rows by a criteria. This resets all previously pushed
criteria.

@param  \anlutro\LaravelRepository\CriteriaInterface $criteria

@return mixed
Get a collection of rows by a criteria . This resets all previously pushed criteria .