/** * @return \yii\db\ActiveQuery */ public function getIdVariabel() { return $this->hasOne(Variabel::className(), ['id' => 'id_variabel']); }
/** * @return \yii\db\ActiveQuery */ public function getVariabels() { return $this->hasMany(Variabel::className(), ['id_topik' => 'id']); }