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 m-to-m relations with sea-orm-cli #1074

Closed
billy1624 opened this issue Sep 26, 2022 Discussed in #1066 · 0 comments · Fixed by #1075
Closed

Generate m-to-m relations with sea-orm-cli #1074

billy1624 opened this issue Sep 26, 2022 Discussed in #1066 · 0 comments · Fixed by #1075
Assignees
Milestone

Comments

@billy1624
Copy link
Member

Discussed in #1066

Originally posted by dorianim September 24, 2022
Hey,

I am currently trying to create a many-to-many relation with sea-orm. I have defined according migrations with three tables, user, group and group_member.
I then ran the migrations and used sea-orm-cli generate entity to generate the entities. However, this only generates relations for user -> group_member -> group but not for user -> group as described here. Am I doing something wrong, or is this just not supported?

Regards,
Dorian

@billy1624 billy1624 self-assigned this Sep 26, 2022
@billy1624 billy1624 moved this to Triage in SeaQL Dev Tracker Sep 26, 2022
@billy1624 billy1624 moved this from Triage to In Progress in SeaQL Dev Tracker Sep 26, 2022
@billy1624 billy1624 added this to the 0.10.x milestone Oct 26, 2022
@billy1624 billy1624 moved this from In Progress to Done in SeaQL Dev Tracker Jan 13, 2023
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 a pull request may close this issue.

1 participant