with 数组传入时候错误

浏览:727 发布日期:2017/05/26 分类:求助交流
$rs = DlModel::with(['editor'=>['group_id']])->select();

错误
版本5.0.9

Exception in Query.php line 93
method not exist:think\db\Query->groupId
$field = Loader::parseName(substr($method, 5));
$where[$field] = $args[0];
return $this->where($where)->find();
} elseif (strtolower(substr($method, 0, 10)) == 'getfieldby') {
// 根据某个字段获取记录的某个值
$name = Loader::parseName(substr($method, 10));
$where[$name] = $args[0];
return $this->where($where)->value($args[1]);
} else {
throw new Exception('method not exist:' . __CLASS__ . '->' . $method);
}
}



DlModel::with(['editor'])这样没有错误
最佳答案
评论( 相关
后面还有条评论,点击查看>>