try to place the order in the outside array parts like this http://github.com/ionas/sna/blob/master/www/app/controllers/messages_controller.php#L66 ($just imagen $this->paginate to be your second find() param.)
On Dec 5, 11:33 pm, Marcelo Andrade <[email protected]> wrote: > Hi there, > > I'm using containable to get a set of records like this: > > $this->Pagamento->contain(array( > 'Lancamento'=> array( > 'fields'=> array('mes_ano') > , 'Unidade'=> array( > 'fields'=> array('quadra_id', 'lote') > , 'order'=> array('quadra_id', 'lote') // <--- ORDER > , 'Proprietario.nome' > ) > , 'TipoLancamento.descricao' > ) > )); > // ... > $results = $this->Pagamento->find('all', array('conditions'=> > array(...))); > > The results are supposed to be ordered by the specified > fields, but they are not ordered at all. > > Any tips? > > Best regards. > > -- > MARCELO DE F. ANDRADE > Belem, PA, Amazonia, Brazil > Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
