public function getMilestones() { return $this->hasMany(Milestone::className(), ['project_id' => 'id'])->orderBy('id DESC'); }
public function getMilestone() { return $this->hasOne(Milestone::className(), ["id" => "fkIDWithMilestoneID"]); }
public function getMilestone() { return $this->hasOne(Milestone::className(), ['id' => 'milestone_id']); }
public function getCompletedMilestones() { return $this->hasMany(Milestone::className(), ["fkIDWithProjectID" => "id"])->where(["completed" => 1]); }