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
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'
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