Re: findAll and order by related detail

2007-06-19 Thread Chris
Did you ever get a response to this question, I'm looking for the same thing? On May 21, 7:37 am, szeta <[EMAIL PROTECTED]> wrote: > Hello, > > I don't know how I can achieve this.. > > I want to find all Persons, butorderthem by the 'Due_Date' of the > 'Group' they are assigned to (hasAndBelongs

findAll and order by related detail

2007-05-21 Thread szeta
Hello, I don't know how I can achieve this.. I want to find all Persons, but order them by the 'Due_Date' of the 'Group' they are assigned to (hasAndBelongsToMany). $this->Person->bindModel(array('hasAndBelongsToMany' => array('Group' => array( 'className' => 'Group', 'joinTable' => 'group_pers