多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
使用 setWith 方法传入模型对应的关联方法名即可,关联方法定义[点这里](https://www.kancloud.cn/manual/thinkphp5/142357),注意:视具体场景部分需要绑定属性到父模型上(如数据用在table构建器上)。 list查询 ~~~ $list = DBuilder('ContactsGroupMember')->setWith('profile')->getLists(); ~~~ info查询 ~~~ $info = DBuilder('ContactsGroupMember')->setWith('profile')->getInfo(1); ~~~