Skip to content

Unable to create polymorphic relationship #298

@grahambates

Description

@grahambates

Support for serializing existing resources with polymorphic relationships was added in #89 but it currently doesn't seem to be possible to create the relationship via JSON API.

The discriminator column does not get set which then results in an error when the new resource is returned and fails to serialize. The discriminator column should be set to the model name which matches the 'type' property of the relationship object in the payload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions