Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVersion()
 {
     return $this->hasOne(Version::className(), ['id' => 'version_id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVersions()
 {
     return $this->hasMany(Version::className(), ['project_id' => 'id']);
 }