关联条件查询haswhere怎么用field限制字段

浏览:1616 发布日期:2018/03/07 分类:求助交流 关键字: haswhere field
关联条件查询haswhere怎么用field限制字段,有这个功能吗?
car模型中:
$this
->hasWhere('carBrand',$relation)
->field('car.brand_id,name')
->select();
查询出的字段包含所有值,没有成功限制
最佳答案
评论( 相关
后面还有条评论,点击查看>>