Skip to content

Sequelize sourceKey Option Not Recognizing Custom Column Names in Associations #759

@the-last-php-bender

Description

@the-last-php-bender

Issue Description

<--
When defining associations in Sequelize, the sourceKey option allows specifying the source column to use in the association. However, when using a column other than the primary key (e.g., 'public_key'), the association fails to recognize the specified sourceKey, resulting in an error like "Unknown attribute 'columnName' passed as sourceKey."
-->

What was unclear/insufficient/not covered in the documentation

If possible: Provide some suggestion on how we can enhance the docs

Additional context

<-- Add any other context or screenshots about the issue here. -->

Screenshot (123)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions