> I use the tree behaviour mainly for sorting items (with moveup/ > movedown). These items have their parents in an other table (foreign > key). The parent_id from the tree will be left "null". > > Of course this will make some trouble when moving the items around. > How could I tell CakePHP to look for a parent_id in a other table? > > Think of it like an user/group relation with two tables. Each user > belongs to only one group. Now I would like to move the user user up > and down in an automagic way...
I'm not sure how this could work, as you need to resort the data in a single table each time the tree changes (move up, down, remove). I think best to refactor with a single table, sorry. J -- jon bennett - www.jben.net - blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
