Tag archives for problem

CakePHP Tree Behavior Ordering Issue

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!

Continue reading »

Posted in CakePHP, Tips & Tricks | Leave a comment

Swedish Greys - a WordPress theme from Nordic Themepark.