mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正软数据的delete(true)用法
This commit is contained in:
@@ -63,7 +63,7 @@ trait SoftDelete
|
|||||||
$this->data[$name] = $this->autoWriteTimestamp($name);
|
$this->data[$name] = $this->autoWriteTimestamp($name);
|
||||||
$result = $this->isUpdate()->save();
|
$result = $this->isUpdate()->save();
|
||||||
} else {
|
} else {
|
||||||
$result = $this->db()->delete($this->data);
|
$result = $this->db(false)->delete($this->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->trigger('after_delete', $this);
|
$this->trigger('after_delete', $this);
|
||||||
|
|||||||
Reference in New Issue
Block a user