国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Does tp5 come with soft deletion problem?
KevinQ
KevinQ 2018-02-01 16:36:23
0
2
1722

As long as use SoftDelete; is written in the model, the data cannot be queried in pages. How is this going? ? ? ? ?

Waiting online........................


KevinQ
KevinQ

God helps those who help themselves.

reply all(1)
豬哥

Soft deletion and real deletion

$user?=?model('User');
$user::destroy(1);???//?軟刪除$user::destroy(1,true);???//?真實刪除$user->delete();?????//?軟刪除$user->delete(true);??//?真實刪除

By default, the query data does not include soft deleted data. If it needs to be included, query like this:

$user?=?model('User');$data?=?$user::withTrashed()->select();

If you only query soft deleted data, use this:

$user?=?model('User');$data?=?$user::onlyTrashed()->select();


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template