e.g. I want to return all of my products, and all the categories associated with them.
However, I would only like the id and name of the category. I can accomplish this via : - the original association definition in my product model - or a bindModel of category to product prior to my request If these are the only methods of doing so, then cool. I was simply curious. thanks, mikee On Feb 5, 10:29 am, "Mikee Freedom" <[EMAIL PROTECTED]> wrote: > morning all, > > is there any way to define which fields are returned for associated > models apart from the original definition or using unbindModel and > bindModel? > > for example, I have a findAll on products that is returning all manner > of associated models. some of which have substantial data returned, > but i only need the name and sequence. > > am i better to run the query seperately? or is there a method to do this? > > i'm still using 1.1.x.x > > thanks,mikee --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
