On 3 dic, 01:19, Martin Kirchgessner <[email protected]> wrote: > Top of the model is : > > class MenuItem extends AppModel > { > var $name = 'MenuItem'; > > var $actsAs = array('Tree', 'Containable'); > > the table : > > CREATE TABLE `menu_items` ( > `id` int(11) NOT NULL auto_increment, > `parent_id` int(11) default NULL, > `lft` int(11) default NULL, > `rght` int(11) default NULL, > `label` varchar(255) NOT NULL, > `url` varchar(255) NOT NULL, > `online` int(1) NOT NULL, > `order` int(11) NOT NULL, > PRIMARY KEY (`id`) > ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; > > Are you suggesting that I should add a belongTo to this model? > (belongsTo itself?)
You don't need it. How many fails to the tree test case give you. 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
