Re: Avoiding unnecessary querys

2006-12-26 Thread [EMAIL PROTECTED]
Since reading this, I've been using Mariano's technique for limiting results. It's a pretty slick way of handling this problem. http://bakery.cakephp.org/articles/view/185 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Avoiding unnecessary querys

2006-11-28 Thread [EMAIL PROTECTED]
This is cool, thanks for the awesome replies. On Nov 28, 10:13 am, "Ismael S. Kafeltz" <[EMAIL PROTECTED]> wrote: > you may want to see this > too:http://othy.wordpress.com/2006/06/03/unbind-all-associations-except-s... > > (this is twice i post this link...) --~--~-~--~~-

Re: Avoiding unnecessary querys

2006-11-28 Thread Ismael S. Kafeltz
you may want to see this too: http://othy.wordpress.com/2006/06/03/unbind-all-associations-except-some/ (this is twice i post this link...) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: Avoiding unnecessary querys

2006-11-28 Thread Samuel DeVore
if it is the only relation then you can use $this->ModelName->recursive = -1; // undoes all relations if it is one of many relations and that is the only one you do not want try $this->ModelName->unbindModel(array('hasMany'=>array('Image'))); On 11/28/06, Kesher <[EMAIL PROTECTED]> wrote: > >

Avoiding unnecessary querys

2006-11-28 Thread Kesher
Hi, maybe this is obvious but I don't know how to do it. I have the table "news" which hasMany of the "images" table. The question is: how can I findAll the news without selecting the images table at all? Speed reasons Thanks you bakers --~--~-~--~~~---~--~~ Y