I have three models
- User
- Status
- Comments
I am done with User and Status associations now i want to make join for comments but i am a bit confused and i think it would be like this...
Scenario 1: A user hasMany status and status belongsTo user [ DONE ] Scenario 2: A status hasMany comments and comments belongsTo status [ Which will be done as well ]
The thing which is eating my mind is that comments also belongsTo user [ Right or Wrong ? ]
If right then is this the way i am gonna use belongsTo
var $belongsTo = array('status','user');
and what about find('all') ? would it be like this
$this->User->Status->Comment->find('all');