I've created a method to initialize a tree that already has a parent/child relation available. For example, when upgrading an old database format to include the advantages of a nested set.
The method uses the parentAttribute value to search for children. It then updates the tree recursively.
I've created a method to initialize a tree that already has a parent/child relation available. For example, when upgrading an old database format to include the advantages of a nested set.
The method uses the parentAttribute value to search for children. It then updates the tree recursively.