-
Notifications
You must be signed in to change notification settings - Fork 20
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
Soft-delete cascade #9
Comments
@RuiPMoreira I'm not sure what you're trying to accomplish, maybe a code snippet would help clarify? |
Imagine that you have this tables. Parent {id} ---> Child{id, parent_id} If you try to delete the father with id 1, all the childs with "parent_id=1" should be deleted. |
ok, you're referring to the actual At any rate, these are all details of how you set up your particular implementation, and are not really something that the plugin can do right now. |
I encountered this limitation as well. Until this is officially supported, I'm using the |
+1. Mind sharing some code that solves it using the lifecycle hooks? |
Hi, first of all, congratulations for this awesome plugin.
I'm trying to do soft delete applied to the parent model and them propagate this for every single child, and them for the childs of childs.
This is probably something that i'm doing wrong. But every thing is doing well with hardDelete.
Ty in advance,
Rui
The text was updated successfully, but these errors were encountered: