I use propel and soft delete and propel nested set.
$node->undelete()
everything is fine, node is recovering from soft delete.$node->undelete()
it recovers only the node without any children....Any ideas or solutions?
Yeah, the undelete()
method is pretty simple, all it does it nullify the deleted_at
column on that exact table. However, if you have the soft delete behavior on the sub table as well, then you could do this:
SubTableQuery::create()
->includeDeleted()
->filterByParentId($parentRecord->getId())
->unDelete();
$parentRecord->unDelete();