-
-
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
Association between SQL and memory relations #323
Comments
This is clearly a bug. rom-sql assumes that the other schema must be qualified too. I'm not entirely sure how to solve it at the moment, but probably adding this interface to core wouldn't be such a bad idea. WDYT @flash-gordon ? |
I'm not sure it would make sense for other gateways/adapters (how do call all rom-whatever gems?) |
@solnic but we qualified schemas in |
@flash-gordon I thought about it before 2.0 final was released, but I realized it would create an implicit requirement that associations can only work when relations are qualified, and you may end up with un-qualified attributes by a mistake...on the other hand, current auto-qualification in associations is...implicit behavior 😆 So, we could try removing it and test it out with real apps to make sure (at least we) don't have use cases where some code actually relies on auto-qualification in associations. |
We ran into this issue as well. Kind of a bummer and now we are just going to move the |
OK let's finally address it in 5.0 and rom-sql 3.0 |
Association from sql relation to memory relation does not seem to work.
Full example
Download example
The text was updated successfully, but these errors were encountered: