5.08查询软删除数据的方法应该怎么写

浏览:440 发布日期:2017/05/11 分类:ThinkPHP5专区
5.08 模型里查询软删除数据 这样是错误的写法吗? $data= $this->onlyTrashed()->where($where)->order($order)->field($field)->paginate($listRows);致命错误: Call to a member function where() on null


而withTrashed 这样写又是对的不会报错$data= $this->withTrashed()->where($where)->order($order)->field($field)->paginate($listRows);
最佳答案
评论( 相关
后面还有条评论,点击查看>>