mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正软删除onlyTrashed方法
This commit is contained in:
@@ -38,7 +38,7 @@ trait SoftDelete
|
|||||||
public static function onlyTrashed()
|
public static function onlyTrashed()
|
||||||
{
|
{
|
||||||
$model = new static();
|
$model = new static();
|
||||||
$field = $model->getDeleteTimeField();
|
$field = $model->getDeleteTimeField(true);
|
||||||
return $model->db(false)->where($field, 'exp', 'is not null');
|
return $model->db(false)->where($field, 'exp', 'is not null');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user