I think it is simply a question of complexity as to why that isn´t included.
Probably best to attach your comment/fix to this: https://trac.cakephp.org/ticket/1235 But before you do...Does your removed-if-fix work fine in that it doesn´t generate sql/cake errors or does it work fine in that the end result is a valid tree? I think the result is likely to be a corrupted tree looking at the rest of the setParent code. Although it is more SQL work I would say it would be better to make it an orphan, and /then/ set the parent to be the one that you want. That way the lft and rght fields will have the correct values for everything under the original parent. HTH, AD7six --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
