framework icon indicating copy to clipboard operation
framework copied to clipboard

在关联统计时withJoin 与 withCount 一起使用 在查询时 数据表 alias 表前缀不一致问题,导致报错

Open yuntianya opened this issue 4 years ago • 1 comments

image

image

在关联预载入时数据表重命名没有加入表前缀,在关联统计时关联条件中使用了表前缀,导致数据表重命名不一致,SQL 报错, 这个我查询社区发现2018/07/18 年就有人提过,但是官方没有给出相应解决方案,麻烦看下 http://www.thinkphp.cn/topic/58114.html

yuntianya avatar Aug 23 '21 01:08 yuntianya

使用with 不要用withjoin

jie8699383 avatar Jan 19 '22 08:01 jie8699383