示例#1
0
 public function getMilestones()
 {
     return $this->hasMany(Milestone::className(), ['project_id' => 'id'])->orderBy('id DESC');
 }
示例#2
0
 public function getMilestone()
 {
     return $this->hasOne(Milestone::className(), ["id" => "fkIDWithMilestoneID"]);
 }
示例#3
0
文件: Issue.php 项目: mops1k/yiimine
 public function getMilestone()
 {
     return $this->hasOne(Milestone::className(), ['id' => 'milestone_id']);
 }
示例#4
0
 public function getCompletedMilestones()
 {
     return $this->hasMany(Milestone::className(), ["fkIDWithProjectID" => "id"])->where(["completed" => 1]);
 }