示例#1
0
文件: Fakta.php 项目: haydiru/GIS
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdVariabel()
 {
     return $this->hasOne(Variabel::className(), ['id' => 'id_variabel']);
 }
示例#2
0
文件: Topik.php 项目: haydiru/GIS
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVariabels()
 {
     return $this->hasMany(Variabel::className(), ['id_topik' => 'id']);
 }