RepositoriesPattern
RepositoriesPattern copied to clipboard
Wrong variable used in applyCriteria
/** Applies the criterias in the stack before return the result. * @return $this */ public function applyCriteria() { if($this->skipCriteria) return $this; foreach($this->getCriterias() as $criteria) { $this->model = $criteria->apply($this->model, $this); } return $this; }
I believe there should be entity variable here instead of model