i would like to do the following. i have a table, lets call it "softwaretype". in this table i want to store main classes (e.g. Internet software), but also subclasses (e.g. Internet Browsers, Mail, FTP...). i add an "parent_id" field which stores the id of the "parent". if the type is a main class, the is NULL in it.
how do i define associations? i made a hasMany association where i can handle all "children" that worked. but how can i find the parent if i have a subclass. i think i have problems to understand associations at all. what if i have no foreign key. i dont know how to make a key in a parent class pointing to all children ??? hmmm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---