thinkphp6模型的append获取不了值

浏览:2268 发布日期:2022/01/04
5.0.0 - 严重 - 已处理
think-orm 2.0.49$data = User::where('id','<',10)->append(['status_text'])->select();
return json($data);
没有append的数据,以前是有的
$data = User::where('id','<',10)->select()->append(['status_text']);
return json($data);
这样是有的
现在要这样才有?

$data = User::with(['profile'=>function($query){$query->field('*')->append(['status_text'])}])->where('id','<',10)->select();
这种以前也是可以的现在都不行了
评论(
后面还有条评论,点击查看>>