//关联分组
public function authGroup()
{
return $this->belongsTo(AuthGroup::class, 'group_id', 'id');
}
查询语句:Admin::hasWhere('authGroup')->where(['id' => $id])->find();
报错:SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous
这中模型关联 查询条件怎么写啊