support for app-side cascade destroy #57
Labels
f: associations
the associations feature in pop
proposal
A suggestion for a change, feature, enhancement, etc
Milestone
hi,
in rails activerecord, we have this:
i think best not todo delete_all as it will possibility causes hanging fruits if there are subtables in membership as it will issue direct sql statement to delete them
but when :destroy is used, then it will call model destroy method and it shall trigger sub table destroy when needed.
but one more concern is, sometimes we do not query the sub table, for example:
We query A without eagerLoad B, but when we destroy A, we wish that B as a child is also queried and destroyed in this scenario.
would love to see if anyone willing todo this?
or any guide on which code i can look for to work this out.
thank you
The text was updated successfully, but these errors were encountered: