Open florianJacques opened 1 week ago
Can you please add tests for this change? Thank you!
Can you please add tests for this change? Thank you!
Yes of course when I have a little time. I missed the sync/toggle functions. I still have work to do.
Add Test OK.
Sorry for the time it takes to review your PR. This part of the code is complicated and we need to ensure this is feature we can support and maintain for the long run. The more we copy and modify code from the parent class, the more difficult it is to maintain and keep compatibility with multiple versions of Laravel version (even minor version can break). Also, I guess belongsToMany
is not the only type of relationship that would need such change.
Sorry for the time it takes to review your PR. This part of the code is complicated and we need to ensure this is feature we can support and maintain for the long run. The more we copy and modify code from the parent class, the more difficult it is to maintain and keep compatibility with multiple versions of Laravel version (even minor version can break). Also, I guess
belongsToMany
is not the only type of relationship that would need such change.
No problem, the big change is in the "formatRecordsList" method, which currently assumes the existence of a pivot table.
When we use mongodb ObjectIDs for relationships In the case of a BelongToMany relation, the foreignKeys was incorrectly cast
With the type check, the cast is adapted to avoid converting an object into an associative array.
3015
Checklist