Try something like this:
var $belongsTo = array(
'Author' => array (
'className' => 'User',
'foreignKey' => 'author_id'
),
'Recipient' => array (
'className' => 'User',
'foreignKey' => 'recipient_id'
)
);
On 26 авг, 21:52, deepc <[EMAIL PROTECTED]> wrote:
> you are right,
> it's better this way. Thanks.
> But i still haven'f found out how to define the 2 assocs
> I tried with two belongsTo, but i only get the last one (in that case
> recipient).
> Is it posible to do them both?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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=en
-~----------~----~----~----~------~----~------~--~---