On Tue, Sep 29, 2009 at 5:21 PM, Mario <[email protected]> wrote: > > But to me the BIG question is: > isn't there a simpler and more elegant way in Cake to reach the same > result? > > I feel there should be; because the kind of problem, if I understood > it correctly (that is: model alias does not retain the associations of > the original model), seems to me quite broad and frequent. > > I wonder if, for example, if (in this specific case) declaring the > Sender and Receiver models, therefore having the model/sender.php and > model/receiver.php files, could be a possible solution to be explored. > > I look forward to your comments. >
I actually think it is pretty elegant. But, if you're doing this a lot, I suppose it would just be tedious. It seems like something that a Behavior would do very well. There may already be such a thing at the Bakery. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
