Today I found a simple issue with CakePHP’s Tree Behavior.
When saving a model with an empty parent_id Tree Behavior recalculates left and right node.
The consequence is to alter an existing order putting the record at the end of the list.
This problem manifests only with root items with an empty parent_id. Sub trees are safe from this issue!






