Aha, found it! I needed the ContainableBehaviour. In case it helps
someone else I found this (in addition to the manual) very helpful:

http://teknoid.wordpress.com/2008/09/05/example-of-cakephps-containable-for-deep-model-bindings/

toby1kenobi wrote:
> Hi all,
>
>   Does anyone know if it's possible to specify which fields are
> returned in a call to paginate, including fields from nested models.
> Something like:
>
>         $this->paginate['MyModel']['fields'] = array(
>             'DISTINCT MyModel.id, MyModel.title,
>                 MyModelParent.id, MyModelParent.title',
>                 MyModelParent.MyModelParent.id,
> MyModelParent.MyModelParent.title');
>
>   The above doesn't work, and I can't think of an alternative syntax
> that might.
>
>   Cheers,
>
> Toby
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to