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
Add option to remove alias from cli #515
Comments
Yes, we could add that flag. What would be even better is if we could generate the alias only when absolutely necessary. |
Do you mind if I add the flag a perform a pull request? |
Added |
Hi, I tried the new --noAlias option and it still generates the aliases in the model, init-models.js. Any solution? Currently I have to delete them by hand one by one all the as: "". EagerLoadingError [SequelizeEagerLoadingError]: teachers is associated to teachers_rooms using an alias. You must use the 'as' keyword to specify the alias within your include statement. |
Fixed in 0.8.4 |
To avoid EagerLoadingError [SequelizeEagerLoadingError]: users is associated to user_coins using an alias. You must use the 'as' keyword to specify the alias within your include statement.
The text was updated successfully, but these errors were encountered: