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

Investigate delete on cascade when defining associations #246

Open
russnicoletti opened this issue Jan 26, 2017 · 0 comments
Open

Investigate delete on cascade when defining associations #246

russnicoletti opened this issue Jan 26, 2017 · 0 comments
Milestone

Comments

@russnicoletti
Copy link
Collaborator

While working on #228, it was discovered the delete hooks (beforeDelete, afterDelete) are not run during /DELETE requests. From the Sequelize documentation: "The only way to call beforeDestroy/afterDestroy hooks are on associations with onDelete: 'cascade' and the option hooks: true"

We should investigate whether using 'delete on cascade' when defining associations results in delete hooks being run during /DELETE requests.

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

2 participants