Search the Cake book for 'Containable' behavior , I think you will find your answer there
On Thu, Sep 24, 2009 at 10:53 AM, lorenx <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
