Skip to content

Commit

Permalink
reset scope fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ionut-tanasa committed Apr 1, 2016
1 parent 6276b48 commit d347164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Prettus/Repository/Eloquent/BaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function update(array $attributes, $id)

return $this->parserResult($model);
}

/**
* Update or Create an entity in repository
*
Expand Down Expand Up @@ -638,13 +638,13 @@ public function resetCriteria()
$this->criteria = new Collection();
return $this;
}

/**
* Reset Query Scope
*
* @return $this
*/
public function resetCriteria()
public function resetScope()
{
$this->scopeQuery = null;
return $this;
Expand Down

0 comments on commit d347164

Please sign in to comment.