hasOne association doesn't use the 'as' alias for constructing foreign keys #5247
Labels
breaking change
For issues and PRs. Changes that break compatibility and require a major version increment.
Milestone
https://github.com/sequelize/sequelize/blob/master/lib/associations/has-one.js#L50
The code for constructing the default name for the targetKey in hasOne associations should use the options.as alias before using the target.name.
The text was updated successfully, but these errors were encountered: