I've got it!
This is now part of my 'Comments' model.
var $belongsTo = array('Author' =>
array('className' => 'User',
'conditions' => '',
'order' => '',
'foreignKey' => 'user_id',
'fields' => array('id',
'nickname')
)
);
After specifying the 'fields' parameter everything worked as expected.
Only id and nickname are selected.
Is this parameter new in Cake 1.2?
Markus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---