website icon indicating copy to clipboard operation
website copied to clipboard

Sequelize sourceKey Option Not Recognizing Custom Column Names in Associations

Open the-last-php-bender opened this issue 1 year ago • 0 comments

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)

the-last-php-bender avatar Jun 08 '24 16:06 the-last-php-bender