Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Related for many-to-many relation with extra columns #1260

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

limjiayi
Copy link
Contributor

@limjiayi limjiayi commented Nov 28, 2022

PR Info

Bug Fixes

  • Existing logic for determining a many-to-many relation requires the number of columns in the junction table to be equal to the number of primary keys. This makes codegen work incorrectly for junction tables that record additional information about the relationship, so I have removed this requirement.

Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @limjiayi, thanks for contributing!! I second the relaxation.

Thoughts? @tyt2y3

@limjiayi limjiayi force-pushed the bugfix/many-to-many-related branch from 6256863 to 8af6479 Compare November 29, 2022 11:19
@billy1624 billy1624 merged commit 8e888ed into SeaQL:master Dec 1, 2022
@limjiayi limjiayi deleted the bugfix/many-to-many-related branch March 1, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Generate Related for many-to-many tables with extra columns
2 participants