-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Represent several relations between same types #104
Conversation
Just a simple POC @tyt2y3 |
okay looks reasonable. But the intention of |
I walk (join) in the wrong direction here? sea-orm/src/entity/relation.rs Lines 38 to 44 in 31941d3
|
I think we were using join_rev sea-orm/src/entity/relation.rs Lines 26 to 28 in 8cfa142
Lines 121 to 127 in 8cfa142
|
I don't understand why we need sea-orm/src/entity/relation.rs Lines 38 to 44 in 31941d3
Lines 62 to 72 in 31941d3
Check these two test cases and see if the resulting SQL statements are expected Lines 237 to 275 in 31941d3
|
Lines 250 to 253 in 31941d3
Well I think ideally this simple case should matches the original Lines 171 to 184 in 8cfa142
|
I see what you mean now. See 447947e for the fix. |
I also added test cases. Anything is still missing? |
This looks nice 👍 What about |
But generating i.e. each table will be |
For the scope of this PR we are not changing the codegen. |
2d2fff7
to
6847dab
Compare
Resolve #89