You can associate one model twice to another model without issue.
Think of the case when you save the Creator and Modifier of a record,
they both relate to the User model, but as long as you name the
association different it's fine.
var $belongsTo = array(
'Creator' => array(
'className' => 'User',
'foreignKey' => 'creator_id'
),
'Modifier' => array(
'className' => 'User',
'foreignKey' => 'modifier_id'
)
);
As the Meerkat says, "Simples!"
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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