Re: order in hasOne associations not implemented?

2006-09-03 Thread nate
hasOne associations are implemented via an SQL LEFT JOIN, which means you can use hasOne associated fields in your conditions or ordering automatically in calls to find/findAll. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

order in hasOne associations not implemented?

2006-09-02 Thread Evan
I defined my model with this association: class Topic extends AppModel { var $name = 'Topic'; var $hasOne = array( 'LatestPost'= array( 'className' = 'Post', 'order' = 'LatestPost.created DESC'

Re: order in hasOne associations not implemented?

2006-09-02 Thread Samuel DeVore
how does something that hasOne have ordering? perhaps what you are looking for is a hasMany with an ordering and a limit of 1 On 9/2/06, Evan [EMAIL PROTECTED] wrote: I defined my model with this association: class Topic extends AppModel { var $name = 'Topic'; var