Removing the parent node, but not the child ones.
All child nodes must be moved to the remote parent level.
How can I process this script using the awesome_nested_set plugin?
EDIT
Before removing a child
Id, Title, lft, rgt, parent_id
1, root, 7, 12, nil
2, child, 8, 11, 1
3, auxiliary child, 9, 10, 2
After deleting 2 entries
Id, Title, lft, rgt, parent_id
1, root, 7, 12, nil
3, auxiliary child, 9, 10, 1
I want to move the child child to the immediate parent of the remote object. Is this the correct result? Or should lft and rgt be changed after deletion?
source
share