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

Commit

Permalink
Updated the newQuery() method
Browse files Browse the repository at this point in the history
Updated the newQuery() method so that it does not use old soft deleting stuff any more
  • Loading branch information
chriskonnertz committed May 21, 2015
1 parent ddc6cbf commit b3eb963
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/LaravelBook/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit b3eb963

Please sign in to comment.