Skip to content

[Bug] belongs_to mis-associates when target has same-named column type:new_translation #875

@ruibin

Description

@ruibin

Playground pull request link

go-gorm/playground#839

Description

复现要点:两表存在同名列时,belongs_to 在 v1.31.1 被误判为 has one,JOIN 关联到了目标表的非主键列;v1.30.1 正常

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions