V5.1.10
该版本为修正版本,修正上一个版本的一些BUG,并增强了`think clear`指令。更新日志
* 改进`orderField`方法* 改进`exists`查询
* 修改cli模式入口文件位置计算
* 修正`null`查询
* 改进`parseTime`方法
* 修正关联预载入查询
* 改进`mysql`驱动
* 改进`think clear`指令 支持 `-c -l -r `选项
* 改进路由规则对`/`结尾的支持
升级须知
如果数组查询条件中使用了`exists`查询,必须做出如下调整:// 错误
$where[] = ['', 'exists', 'select * from user where status = 0'];
// 正确
$where[] = ['', 'exists', Db::raw('select * from user where status = 0')];建议的方式是使用$model->whereExists('select * from user where status = 0')->select();ThinkPHP 官方小组2018-4-16
最佳答案