Ok I think I did it, and here's the find:

$locations = $this->Location->find('list'. array(
 'contain' => array('Country'),
 'fields' => array(
   'Location.id',
   'Location.name',
   'Country.name'),
 'recursive' => 1
));

The only problem i have now is, how can I sort the select with
Country.name in alphabetical order? Would be VERY nice if someone
could just give me a hint on that :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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