Let's say I have a Blog with many Comments, but I only want to return
some of the fields for the Blog and its Comments.  Is it possible to
use findAll() to only return, for example, the fields Blog.id and
Blog.title (which I know how to do using the $fields parameter in
findAll), but also only Comment.id and Comment.title in all
associated, hasMany, Comments?

This doesn't work:

$this->Blog->findAll(null, array('Blog.id', 'Blog.title',
'Comment.id', 'Comment.title'));

Any ideas?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to