Francisco (?), I think Single Table Inheritance is what you're looking for. Try these articles [1] [2] [3]
Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://www.ifisgeek.com/tutorials/implementing_single_table_inheritance_in_cakephp [2] http://www.ifisgeek.com/2006/08/19/the_joys_of_single_table_inheritance/ [3] http://webrocket.wordpress.com/2007/05/16/discovering-single-table-inheritance/ On 8/14/07, fcojaviermu <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm not sure of how can I implement in cakephp a "Is-A" Relation or in > other words: Generalization/specialization > > For example, let's say I want to represent different kinds of > accommodation such as hotels, appartments, bungalows,countryside > hotel, inns and some others. > > > They would share common information like: town, email, phone > number,etc > > > If I had to do without cakephp, I would use one "accomodation" table > with common information and a specilization field, from which i could > now what table inspect next in order to get the especific fields of > every kind. > > > But how can I do this in cakephp?, I mean, does scaffold and bake know > how to handle this automatically? > > > Thanks > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
