Hi Adam, I'm using the following data structure for the table:
id int(11) unsigned NULL auto_increment name varchar(50) NULL parent_id int(11) Default NULL lft int(11) unsigned Default NULL rght int(11) unsigned Default NULL Thanks for the tutorial link. I've had a read it and can't find any real difference. The only one I spotted was the use of int(11) instaed of int(10) for lft, rght and parent_id. Any ideas? Thanks, Mark On Feb 24, 2:35 am, Adam Royle <a...@sleekgeek.com.au> wrote: > What data type are you using for your lft and rght columns? > > I'm not sure if it will help you, but have a browse over my article > which has all the code to get the Tree behavior working and see if > you're doing anything differently. > > http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-wi... > > Cheers, > Adam > > Mark wrote: > > Hi All, > > > I’m having a problem with the Tree behaviour that I was hoping > > somebody could help me with. > > I’m setting my object id and parent_id, but the 'lft' and 'rght' > > columns are not being updated by the tree behaviour. They are being > > left as their defaults (NULL). > > > The CakePHP 1.2 manual indicates that these fields will be handled by > > the Tree behaviour, but they don’t seem to be for me. > > I’m using MySQL 5.0.67-community with CakePHP 1.2 Stable. > > > Any help would be appreciated! I’ve spent days messing with this and > > just finished a 5 hour session tinkering with it too. I hope this post > > makes sense… I’m shattered ;) > > > Thanks, > > Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---