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