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

attribute named "toString" does not work with associations #9100

Closed
jharting opened this issue Feb 23, 2018 · 0 comments
Closed

attribute named "toString" does not work with associations #9100

jharting opened this issue Feb 23, 2018 · 0 comments

Comments

@jharting
Copy link
Contributor

What are you doing?

For backwards compatibility reasons we need to continue supporting attributes named "toString" in our app. (I know, I know, what an odd name!). Sequelize used to support this in v3 but there were regressions with v4. These regressions were mostly dealt with in #8719 but recently I run into another problem when associations are involved.

What do you expect to happen?

I expect the value of the attribute named toString to work as any other argument

What is actually happening?

The query yields 0 results

Dialect: mysql
Database version: 10.1.26
Sequelize version: 4.33.4
Tested with master branch: Yes

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