Skip to content

Commit 4a4988a

Browse files
committed
修正软删除
1 parent ad3bc0f commit 4a4988a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/model/concern/SoftDelete.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public function delete(): bool
9797
$force = $this->isForce();
9898

9999
if ($name && !$force) {
100-
foreach ($this->getData() as $name => $val) {
100+
foreach ($this->getData() as $key => $val) {
101101
if ($val instanceof Model || $val instanceof Collection) {
102-
$relations[$name] = $val;
102+
$relations[$key] = $val;
103103
}
104104
}
105105
// 软删除

0 commit comments

Comments
 (0)