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 [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 -~----------~----~----~----~------~----~------~--~---
