💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` tp5一对一关联 ``` ``` **public function** Member() { **return** $this\->hasOne(**'Member'**,**'member\_id'**, **'****order\_mid****'**); } 关联表**Member** 关联表里字段**member\_id** 主表的外键字段**order\_mid** ~~~ OModel::where($where)->with('Member')->order($order)->paginate($page); ~~~ **SQLSTATE\[42S22\]: Column not found: 1054 Unknown column 'Orders.member\_id' in 'on clause'** # SQLSTATE\[42S22\]: Column not found: 1054 Unknown column 'Orders.member\_info\_mid' in 'on clause' ```