🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
使用 setWith 方法传入模型对应的关联方法名即可,关联方法定义[点这里](https://www.kancloud.cn/manual/thinkphp5/142357),注意:视具体场景部分需要绑定属性到父模型上(如数据用在table构建器上)。 list查询 ~~~ $list = DBuilder('ContactsGroupMember')->setWith('profile')->getLists(); ~~~ info查询 ~~~ $info = DBuilder('ContactsGroupMember')->setWith('profile')->getInfo(1); ~~~