Skip to content
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

BelongsToMany sync does't use configured foreign key #2666

Closed
GromNaN opened this issue Nov 3, 2023 · 0 comments · Fixed by #2667
Closed

BelongsToMany sync does't use configured foreign key #2666

GromNaN opened this issue Nov 3, 2023 · 0 comments · Fixed by #2667
Milestone

Comments

@GromNaN
Copy link
Member

GromNaN commented Nov 3, 2023

I guess there is an other issue with this call. It should be $ids = $this->parseIds($ids); also. Otherwise it's getting the model _id instead of the relatedKey.
Do you want to add an other test with a customized relatedKey? That will require a new model class for tests, but will ensure we use the correct ID field.

Originally posted by @GromNaN in #2648 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant