Sounds like Containable is your answer - 
http://book.cakephp.org/view/474/Containable

On Nov 20, 3:58 pm, Josh <[email protected]> wrote:
> Hello,
>
> I was wondering if there is a prettier way to do this:
>
>         $this->Ielement->Mem->hasMany['Rep']['order'] = 'created
> DESC';
>
>         $this->Ielement->Mem->find(...
>
> It seems from the cake documentation I should be able to do something
> like:
>
>         $this->Ielement->Mem->Rep->order = 'created DESC';
>
> But, that doesn't work.
>
> Thanks.

--

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=.


Reply via email to