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(
I have the following problem:
- user model [id, firstname, lastname, email]
- review model [id, author_id, target_id, comment]
Each user can review other users. Both review.author_id and
review.target_id should be linked to user.id.
What is the relation between those models? Each review
Review Belongs To User, thats all, since Review.author_id references a
single user User
On 9 February 2010 22:00, NickPick dickreu...@yahoo.com wrote:
I have the following problem:
- user model [id, firstname, lastname, email]
- review model [id, author_id, target_id, comment]
Each user