Skip to content

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

Open
@yuntianya

Description

@yuntianya

image

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ORMTP5ThinkPHP5.0/5.1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions