On Sep 16, 12:31 am, DanielMedia <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm wondering if anyone out there has chosen to bypass Cake's > associations and use a more traditional approach. For example, if I > want to get all the comments in an article, I could write my own > method and call $this->Article->get_comments(). Seems like an easier > approach than having to worry about binding/unbinding. I guess what > I'm really asking here is, what is the downside (if any) of bypass > Cake's "auto-magic" features like associations. For example, if I want > fine-grained control over caching of comments via memcache, am I > losing something by bypassing Cake's conventions? The only thing I can > think of is that I would have to use custom query pagination. Any > other thoughts?
Well bypassing it all seems like a heck of a lot of work. Using containable seems like a much better solution to me. Associations are there to save you time, going around and fighting them will cost you time. I think starting off with the full associations and pruning back with containable is the best solution. -Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
