Thanks gwoo.. does this mean I make models PrintAdvertisement extends Advertisement??
I thought the hasOne association meant the object MUST have a related record, or is it optional? I was more inclined to have a PrintAdvertisement which has a hasOne association with the base advertisements table. let me know your thoughts :D thanks On Apr 18, 1:08 pm, gwoo <[EMAIL PROTECTED]> wrote: > Advertisement hasOne PrintAdvertisement, Advertisement hasOne > OnlineAdvertisment > > With these assocaitions there would be common fields in the > advertisements table and then type specific fields on the > print_advertisements and online_advertisements tables. > > So, laptop you have the right idea. Build it > > @kristofer > he is talking about models. Components should not interact with models > unless it is absolutely necessary and even then they should not > interact with one specific model. The goal is reusuablilty and as soon > as you tie a component to a model you a restricting the use cases. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---