-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
V6. When populating a Many-to-Many relationship that uses STI, the ORM joins on the wrong column of the pivot table #4423
Comments
This one is a bit more tricky, I guess I will try to do a bigger refactor to get rid of the weird |
I just happened to add a hotfix PR, if you have the time to check it out :) |
I managed to remove the weird parts from QB (together with this problematic |
Describe the bug
On the version 6, when populating a Many-to-Many relation that uses STI (i did not specify a strategy), the ORM joins on the wrong column of the pivot table.
I tried the same with a relation that does not use STI and it does not seem to have the same issue.
To Reproduce
Steps to reproduce the behavior:
https://github.com/YanDjin/mikro-orm/blob/bug/find-sti-relation/tests/issues/GH4423.test.ts
this link contains the test that replicates the issue.
Expected behavior
To join the populate request on the correct column of the pivot table
Versions
The text was updated successfully, but these errors were encountered: