hi all.

i'm trying to order a deeply related model but the following code
gives me an error.

$params = array(
        'order' => 'RelatedModel.relatedmodel_field DESC',
        'recursive' => 3
);
$models_array = $this->Model->find('all', $params);

i saw that cakephp do several queries to build $models_array and the
order parameter is appended to the first query, the one with no
RelatedModel reference.
i also tried to set $order in the model but it didn't solve (and i
don't want a static order anyway...)

how does cakephp handle this issue?

thanks to all, very much.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to