too bad that there is no way to do it. I'm currently doing it exactly the way you suggested but I was hoping for an easier solution. It get's a bit more difficult when you want the associated data to be indexed. But especially it is not so nice because it does affect performance
On Tue, Sep 2, 2008 at 2:43 AM, Jaime <[EMAIL PROTECTED]> wrote: > > It is not possible, but you can always extend the find() method in > your Appmodel if you require that funcionality often: > > class AppModel extends Model { > > function find($type, $params) > switch ($type) { > case 'indexed' : return Set::combine($this->find(...), '...'); > default: return parent::find($type, $params); > } > > } > > And then just call $this->Mymodel->find('indexed', array(...)); > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---