Im trying to generate a select list, but before the value Citiy.name i
need to add Country.name like:

Costa Rica - Heredia
EEUU - New York

$cities = $this->City->find('all', array('fields' => array('City.id',
'City.name', 'Country.name'), 'order'=>'City.country_id ASC'));

My question is, how can i preppend the country name to the city name
using combine?:

$citiesCombine  = Set::combine($cities, '{n}.City.id',
'{n}.Country.name');


thanks in advance.



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