tp5.1关联模型has问题

浏览:951 发布日期:2018/11/23 分类:ThinkPHP5专区
$fualtList = Fault::with(['business','notices'=>function($query){
$query->order('id desc')->has('notices', '<', 3);
}])
->where('fault.status' ,'=', '0')
->select();

method not exist:app\crontab\model\Notice->has[D:\wamp\www\ServerMonitor\thinkphp\library\think\db\Query.php:180]
最佳答案
评论( 相关
后面还有条评论,点击查看>>