Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 402fe62

Browse files
committed
Merge pull request #269 from chriskonnertz/master
Updated the newQuery() method to work with Laravel 4.2. Closes #211; superseeds and closes #227.
2 parents ddc6cbf + b3eb963 commit 402fe62

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/LaravelBook/Ardent/Ardent.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -921,12 +921,7 @@ public function newQuery($excludeDeleted = true) {
921921
// while it is constructing and executing various queries against it.
922922
$builder->setModel($this)->with($this->with);
923923

924-
if ($excludeDeleted and $this->softDelete)
925-
{
926-
$builder->whereNull($this->getQualifiedDeletedAtColumn());
927-
}
928-
929-
return $builder;
924+
return $this->applyGlobalScopes($builder);
930925
}
931926

932927
/**

0 commit comments

Comments
 (0)