summaryrefslogtreecommitdiff
path: root/vendor/illuminate/database/Eloquent/SoftDeletes.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/illuminate/database/Eloquent/SoftDeletes.php')
-rw-r--r--vendor/illuminate/database/Eloquent/SoftDeletes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/illuminate/database/Eloquent/SoftDeletes.php b/vendor/illuminate/database/Eloquent/SoftDeletes.php
index 1cd27c1c09..232a41f6aa 100644
--- a/vendor/illuminate/database/Eloquent/SoftDeletes.php
+++ b/vendor/illuminate/database/Eloquent/SoftDeletes.php
@@ -59,7 +59,7 @@ trait SoftDeletes
if ($this->forceDeleting) {
$this->exists = false;
- return $this->newModelQuery()->where($this->getKeyName(), $this->getKey())->forceDelete();
+ return $this->setKeysForSaveQuery($this->newModelQuery())->forceDelete();
}
return $this->runSoftDelete();
@@ -72,7 +72,7 @@ trait SoftDeletes
*/
protected function runSoftDelete()
{
- $query = $this->newModelQuery()->where($this->getKeyName(), $this->getKey());
+ $query = $this->setKeysForSaveQuery($this->newModelQuery());
$time = $this->freshTimestamp();