I
I
Igor Karachentsev2016-05-17 17:16:48
Laravel
Igor Karachentsev, 2016-05-17 17:16:48

How to delete a section with subsections in Baum?

Good evening. Please clarify how to correctly delete a section with all children in the baum extension in Laravel. I fiddled with this for several hours, but did not understand how best to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pochepko, 2016-05-17
@kucheriavij

I assume you want to remove all descendants. It is better to do this through an event subscription. When the "deleting" event occurs, you must take all the children and delete them. Accordingly, if the descendants have other descendants, then this event will also occur on the first ones.
Regarding events and their processing, read here
Doc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question