RepositoriesPattern icon indicating copy to clipboard operation
RepositoriesPattern copied to clipboard

Wrong variable used in applyCriteria

Open startuphand opened this issue 8 years ago • 0 comments

/** 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

startuphand avatar Feb 15 '17 10:02 startuphand