From b3eb96303149182da8e4127d2aca00e16082f0a5 Mon Sep 17 00:00:00 2001 From: Chris Konnertz Date: Thu, 21 May 2015 13:05:37 +0200 Subject: [PATCH] Updated the newQuery() method Updated the newQuery() method so that it does not use old soft deleting stuff any more --- src/LaravelBook/Ardent/Ardent.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/LaravelBook/Ardent/Ardent.php b/src/LaravelBook/Ardent/Ardent.php index 140410f..ba6f026 100755 --- a/src/LaravelBook/Ardent/Ardent.php +++ b/src/LaravelBook/Ardent/Ardent.php @@ -921,12 +921,7 @@ public function newQuery($excludeDeleted = true) { // while it is constructing and executing various queries against it. $builder->setModel($this)->with($this->with); - if ($excludeDeleted and $this->softDelete) - { - $builder->whereNull($this->getQualifiedDeletedAtColumn()); - } - - return $builder; + return $this->applyGlobalScopes($builder); } /**