-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
relation.wrap should respect association view #251
Comments
I'm not sure if we want to support I'll leave this open for further discussion. |
@flash-gordon do you have any idea how this could be done? |
From @flash-gordon on June 27, 2017 11:11 🤔 |
@flash-gordon I'm not sure if I follow :) |
From @flash-gordon on June 28, 2017 11:18 @solnic lol, let's put it in another form, what's the problem with joining a view? RDMS has a similar concept of a "database view" and it's absolutely legal to join a view. We can do something very similar by, say, joining a subquery. WDYT? |
ah yeah, this makes sense |
From @johnnoone on June 9, 2017 10:49
I've defined 2 relations, one with a custom view (to filter some columns), and an association to that view.
When I use
relation.combine_children
, it works as expected and linked entity returns only the wanted fields.But when I use
relation.wrap
, it does not respect the custom view.For example this script:
Wrap query returns
Expected
Copied from original issue: rom-rb/rom#407
The text was updated successfully, but these errors were encountered: