BelongsToMany sync does't use configured foreign key
GromNaN opened this issue · comments
Jérôme Tamarelle commented
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 therelatedKey
.
Do you want to add an other test with a customizedrelatedKey
? 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)