col
references in scopes break when the model is included
#13889
Labels
col
references in scopes break when the model is included
#13889
Issue Creation Checklist
Bug Description
SSCCE
Here is the link to the SSCCE for this issue: LINK-HERE
Alternative Link in my cloned repository
What do you expect to happen?
When having a sequelize scope and querying some entity, the include works as expected.
But when including that entity in another entity query, it fails because the reference to the first entity is not correct.
I expect this code to not throw an error and the check from line 72 to work.
Environment
Bug Report Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: