Use something like
$l = $this->model->find('list');
$options = set::combine($l, "{n}.id", "{n}.name");
On Jan 16, 12:58 pm, Barry <[EMAIL PROTECTED]> wrote:
> I've come across this function searching in the groups.
> Problem is that when I try and use it I get:
>
> Warning (512): (Model::generateList) Deprecated, use
> Model::find("list") or Model::find("all") and Set::combine() [CORE/
> cake/libs/model/model.php, line 2191]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---