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

Multiple rows delete #153

Closed
anagami opened this issue Aug 19, 2017 · 1 comment
Closed

Multiple rows delete #153

anagami opened this issue Aug 19, 2017 · 1 comment

Comments

@anagami
Copy link

anagami commented Aug 19, 2017

Hi!
I have two models Keys { id, name } and Values { id, keyId, ...}
when i remove one key, also i want delete all values with same keyId, before entry removing

I want do this in hook.before.remove. Sequelize provide for this method destroy. This method available only when set option { raw: false }.
Docs explain only common case, when service same.
How i can get instance of another service in hook?

@anagami
Copy link
Author

anagami commented Aug 19, 2017

find solution in docs

@anagami anagami closed this as completed Aug 19, 2017
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