I suppose 'fields' shoud be an array if you're trying to get more of
them
like:
$subdivisions = $this->Listing->find('list', array('fields'=>
array( 'Listing.subdivision, Listing.subdivision'),
'order'=>'Listing.subdivision ASC')
);
I've just tried this:
$this->UserGroup->find('list',
__ array(
___'fields' => array('UserGroup.id', 'UserGroup.name'),
___'order'=>'UserGroup.name ASC'
));
and it works fine.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---