think-orm
think-orm copied to clipboard
think-orm v2.0.33 多对多关联 报错pivot不是唯一
多对多关联 报错 pivot不是唯一:
出错版本 topthink/think-orm": "2.0.33" 出现以下问题,但是2.0.33之前的版本没有问题。
错误:SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'pivot'
@liu21st @yunwuxin @vus520 @Lofanmi 请大佬们帮忙检查以下原因?升级2.0.33后报错了
执行查询
模型定义
环境:
"php": "7.4.8",
"topthink/framework": "6.0.3"
"topthink/think-orm": "2.0.33"
mysql=8.0.x
think-orm v2.0.33:
回退 think-orm v2.0.32版本就没有问题
可以更新到最新开发版再试试