From d347164f71fcaf854c669381582a1374a6ab6380 Mon Sep 17 00:00:00 2001 From: Ionut Tanasa Date: Fri, 1 Apr 2016 19:44:56 +0200 Subject: [PATCH] reset scope fix --- src/Prettus/Repository/Eloquent/BaseRepository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Prettus/Repository/Eloquent/BaseRepository.php b/src/Prettus/Repository/Eloquent/BaseRepository.php index 60db3ad6..01fc8952 100644 --- a/src/Prettus/Repository/Eloquent/BaseRepository.php +++ b/src/Prettus/Repository/Eloquent/BaseRepository.php @@ -473,7 +473,7 @@ public function update(array $attributes, $id) return $this->parserResult($model); } - + /** * Update or Create an entity in repository * @@ -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;