예제 #1
0
파일: Issue.php 프로젝트: jacmoe/bugitor
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVersion()
 {
     return $this->hasOne(Version::className(), ['id' => 'version_id']);
 }
예제 #2
0
파일: Project.php 프로젝트: jacmoe/bugitor
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVersions()
 {
     return $this->hasMany(Version::className(), ['project_id' => 'id']);
 }