Thinkphp 关联模型

1.定义关联模型

2.使用关联模型

D('BlogRelation')->relation(true)->add($data);
原文地址:https://www.cnblogs.com/subtract/p/4278160.html