一对一
文档地址:https://doc.fastadmin.net/doc/controller.html#toc-4
样例:4个表 fa_stuclass fa_student fa_studentmoney fa_stuscore
主表为:fa_student
实现:操作学生主表,增删改查 学费表和成绩表,查询班级表
关联查询
控制器里
文档地址:https://doc.fastadmin.net/doc/controller.html#toc-4
样例:4个表 fa_stuclass fa_student fa_studentmoney fa_stuscore
主表为:fa_student
实现:操作学生主表,增删改查 学费表和成绩表,查询班级表
控制器里
withCount()
也可在前端做统计
貌似是tp5.0的问题,没找到更好的办法
注意with和join同时用可能会有问题,可以改写为alisa join写法
感觉没有这个场景吧,together()貌似不支持,我也不会~
如果真要批量改的话,就这样吧:
TimLi
This person is a lazy dog and has left nothing
Comments