Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
the-last-php-bender opened this issue Jun 8, 2024 · 0 comments

Comments

@the-last-php-bender
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant