ok, thank you very much!

On Sep 24, 1:58 pm, Bert Van den Brande <[email protected]> wrote:
> If I understand you question correctly I think you're right :)
>
>
>
> On Thu, Sep 24, 2009 at 1:27 PM, lorenx <[email protected]> wrote:
>
> > perfect, thanks!
>
> > just one little question:
> > if i have a deep and complex recursion and i just want a condition on
> > a single model in the middle of the tree... it seems that i also have
> > to specify all the other models not to have them filtered out, am i
> > right?
>
> > On Sep 24, 11:09 am, Bert Van den Brande <[email protected]> wrote:
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to