I am having an issue with the Tree Behavior.  Yes I did muck with the
indexs to fix another problem, and now I am suffering for it.

My data has ended up with duplicate lft, rght indexs as well as other
issues, that is what Tree::verify tells me.

I tried

class FixShell extends Shell {
        var $uses = array('Organization');
        function main() {
                $this->Organization->recover($this->Organization);  //
should build from parent_id
        }
}
 to resolve, indexs changes but still ended up with a broken tree per
Tree::verify.

Any help or suggestions would be welcomed.


Full description at http://pastebin.com/m7f12fe69


Original data in rght order.
+-----+-----------+------+------+
| id  | parent_id | lft  | rght |
+-----+-----------+------+------+
|  87 |        84 |    3 |    4 |
|  88 |        84 |    5 |    6 |
| 221 |        84 |    7 |    8 |
|  84 |        82 |    2 |    9 |
  .
  .
  .
| 222 |        83 |  286 |  655 |
|  82 |      NULL |    1 |  684 |
|  93 |        86 |    1 |  684 |
|  94 |        86 |    1 |  684 |
|  83 |        82 |    1 |  684 |
+-----+-----------+------+------+
7 rows in set (0.00 sec)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to