-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Missing method "find_with_linked" #1242
Comments
May be related to #1203 ? |
Somewhat related, but I'm looking to get a |
Actually, I was looking at the custom-select page, and even with custom joins and so on, I can't figure out how to get a |
So, from what I understand, the only way to do it given the current code (if we want to leverage the link) is to use |
I think this omission is not intentional and this can be added. Edit: it is due to the fact that SelectTwoMany does not use a hash map, and instead only rely on the order of the first entity. So it can't handle multiple joins in the complex case. If we change the implementation, we will be able to cater both. Alternatively, we can maintain two selector implementations. |
Closed by #1743 |
Motivation
We have
find_with_related
andfind_also_linked
, but there's nofind_with_linked
.For instance, I want to get all users who are in a group whose name is "admin" (not primary key). I have a "membership" table for the N-N relation. I would want to write:
Then there's also the question of inner join vs left join. I know the answer is probably going to be pointing me to https://www.sea-ql.org/SeaORM/docs/advanced-query/custom-select/, but it's just a seemingly missing part of the API.
The text was updated successfully, but these errors were encountered: