-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
ID in included resources are being populated with the pivot table id instead of the actual resource id #111
Comments
Ran into a similar issue where pivot attributes were now being returned with models which is new. Look like the |
This also causes issues when a model's table and pivot table have fields with the same name and using defaultSort(). In my case, both the model's table and pivot table had |
Chaining |
Could this be the same issue as #118? A fix for that one was tagged a couple of minutes ago in 1.11.2. Can you please check if the issue is still there on that version? |
@AlexVanderbist I think that fix may solve this issue as well, I noticed the commit but haven't had time to test it. |
I will test the new version soon |
Just got around to retesting this, and it seems my issue is still exists. Pivot table fields are being combined with the main table fields and causing them to be overwritten and/or conflict. |
The bug still in 1.12.0,i only can using |
Hi guys, can you check if the bug persists in 1.13.0? If it does, please PR a failing test and I'll take a look at it there :) Thanks |
Still, I am facing the same problem! :( |
somewhere between version "1.9.0" and latest versions this behavior changed.
In version 1.9.0, if you request a with a included collection of models, the id of these models will be correct, in latest version, it will be filled with the pivot id instead of the original model.
The text was updated successfully, but these errors were encountered: