Sounds like Containable is your answer - http://book.cakephp.org/view/474/Containable
On Nov 20, 3:58 pm, Josh <joshs.silver...@gmail.com> 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 cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.