-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
underscored:true not returning snake_case on queries #10581
Comments
Please use Github Issue Tracker only for reporting bugs, requesting new features or discussions. Ask questions on Stackoverflow sequelize.js tag or Slack. While I would like to help answer any questions but it still take too much time. If you are reporting a bug please isolate it as SSCCE, present it nicely and follow issue template. This will help maintainers and contributors understand your issue quickly. If you are requesting a feature spend some time to properly present your use case with some examples, current and expected outcome. ( What is SSCCE ? You can find template for Sequelize here ) A few good example of SSCCE |
So you are closing this issue because it's not pretty enough? |
I am also having the same problem. |
same issue, damet bug 😠 |
on sequelize@5.1.0, setting the underscored property on the model definition is not working when reading or writing to the foreign fields.
Even when I manually define the foreign key on the association, it returns both snake_case and camelCase of the same field
Attached is an example with only underscored: true:
Attached is an example with underscored: true and associate forgeinkey name:
The text was updated successfully, but these errors were encountered: