On Jan 16, 2:25 pm, "Tazz" <[EMAIL PROTECTED]> wrote:
Yep I got it working with bind/unbind. Defining all the associations in the model before hand is nice "clean", but inefficient on the find since it will return all data for all associations. It would be interesting to be able to define a few associations in the model and be able to pass the association name to the find methods.
Do you know about this ? http://bakery.cakephp.org/articles/view/185 It lets you define on the fly which associations should be queried, and which shouldn't. So if you only want your newsletter to return Vinyl releases, you'd do : $this->NewsLetter->expects('VinylReleases'); $this->NewsLetter->find(...); Anselm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
