You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: