On Aug 3, 2006, at 3:35 PM, Golfer001 wrote:
> > What is the correct way to deal with selective association? e.g., I > have a 'order' model that belongsTo 'customer', 'product' models. In > the list action of Orders Controller, I don't want the 'order' model > associated to anybody so I can return all the orders id faster. When > viewing the individual order itself, I want 'order' associated with > 'customer' and 'product' to get more detailed info. When you set $this->Order->recursive = 0, associated models wont get fetched. Turning up $recursive allows you to tell Cake how many levels deep you want it to go. -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---