Did you take a look to this posting in the bakery ? http://bakery.cakephp.org/articles/view/coding-a-self-join-in-a-cake-application
On Tue, Jul 15, 2008 at 10:01 AM, kaushik <[EMAIL PROTECTED]> wrote: > I want to introduce the parentID in this Model, this parentId is > actually foreign key to locate the parent category of any sub- > category. The categoryID of any parent category will be insert as > parentId column of any subcategory and in case of parent category it > will be 0. > > What change I have to do in the controller to make this relation. How > i have to use this model to display all the category name with its > parent category? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
