-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot get it work with hasMany+belongsTo associations. #2
Comments
Thanks for the feedback, This hook uses the alias to match the association, you should specify the alias Take a look at this samples Let me know if you got it. |
I did not. I extended the definition according to your example:
There are no errors during startup, but there's an error when I try /users/list"
Do I still do something wrong? Why sails-hook-sequelize-blueprints cannot just work with Sequelize default assignment setup? |
It's seems there's other error causing this. this hook doesn't loads the sequelize actually, https://github.com/festo/sails-hook-sequelize does it there's something wrong with
can i have a full sample to reproduce it? |
I have two models: User and Trade and I have these associations:
I get blueprint error when starting Sails:
If I explicitly define foreignKey:
I get a Sequelize error:
Did I do something wrong or is there something wrong with blueprints?
The text was updated successfully, but these errors were encountered: