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

Add option to remove alias from cli #515

Closed
agustints opened this issue Apr 14, 2021 · 5 comments
Closed

Add option to remove alias from cli #515

agustints opened this issue Apr 14, 2021 · 5 comments

Comments

@agustints
Copy link

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.

@steveschmitt
Copy link
Collaborator

Yes, we could add that flag. What would be even better is if we could generate the alias only when absolutely necessary.

@ELHoussineT
Copy link

etter is if we could generate the alias only when absolutely necessary.

Do you mind if I add the flag a perform a pull request?

@steveschmitt
Copy link
Collaborator

Added --noAlias in 0.8.3

@agustints
Copy link
Author

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.

@steveschmitt
Copy link
Collaborator

Fixed in 0.8.4

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

3 participants