Skip to content

BelongsToMany sync does't use configured foreign key #2666

Closed
@GromNaN

Description

@GromNaN

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions