hi folks
I am new to Php as well as Yii and you can say that i am a new pilot and yet I am learning flying at A380
issue is that everything is working fine for me until CHAPTER 6
I cannot understand concept of Returning back to the owner and requester dropdowns
I am implementing it side by side and in my case Issue.php did not generated relations ,I just then placed following code
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'owner' => array(self::BELONGS_TO, 'User', 'owner_id'),
'project' => array(self::BELONGS_TO, 'Project', 'project_id'),
'requester' => array(self::BELONGS_TO, 'User', 'requester_id'),
);
}
I want some description in other text as i donot understand that is written in book .
plus why self:: used?
also this one is a bit more tricky
public function relations()
{
// NOTE: you may need to adjust the relation name and the
related
// class name for the relations automatically generated below.
return array(
'issues' => array(self::HAS_MANY, 'Issue', 'project_id'),
'users' => array(self::MANY_MANY, 'User', 'tbl_project_
user_assignment(project_id, user_id)'),
);
}
thanks in advance