Hi. Can i access other models from within a given model? My idea is to create a model for a view and then override the save() method to save the data to the appropriate tables.
Example: Say we have two tables: a, with fields id and name, and b, with fields id, name and a_id. We also have a view v defined as select a.id, a.name, b.name as bname from a, b where b.a_id = a.id So, i want to have a model v that works on the view. When i do a v.save() it should put data in a and b, transparently. For that to work i must have access to a and b's models in v. Is there a way to do so? Thanks in advance. -- Gonçalo Marrafa <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
