think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

模型启用软删除的时候,delete的链式调用不起作用?

Open augushong opened this issue 2 years ago • 0 comments

模型开启了软删除,delete方法就不能用了? 使用delete可以生成sql,但是不会执行。

AppOrderFile::whereNotIn('id', $new_file_id_list)
->where('order_id', $row->id)
// ->delete();
->update([
    'delete_time' => time(),
]);

augushong avatar Apr 10 '23 03:04 augushong