Extension for the tree behavior in CakePHP