-
-
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
has_many through join generates incorrect query #279
Labels
Comments
looks like i inadvertently fixed this; patch forthcoming |
doriantaylor
added a commit
to doriantaylor/rom-sql
that referenced
this issue
May 22, 2018
doriantaylor
added a commit
to doriantaylor/rom-sql
that referenced
this issue
May 22, 2018
doriantaylor
added a commit
to doriantaylor/rom-sql
that referenced
this issue
May 23, 2018
doriantaylor
added a commit
to doriantaylor/rom-sql
that referenced
this issue
May 23, 2018
solnic
pushed a commit
that referenced
this issue
Apr 20, 2019
solnic
pushed a commit
that referenced
this issue
Apr 20, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I'd like to report a problem with simple
has_many through
usage. Lets consider simpleusers
has manyemployees
case with intersection tableemployees_users
. For a join onemployees
, ROM generates query:whereas it should be (compare join on
employees
):It helps a bit, when you'll provide
foreign_key
on relation associations, ie:but still, the join on
employees
in incorrect.See the code below to recreate the problem.
Bundled with:
rom-sql (2.3.0)
The text was updated successfully, but these errors were encountered: