/** * @return \yii\db\ActiveQuery */ public function getLanguage() { return $this->hasOne(Language::className(), ['id' => 'language_id']); }
/** * @return \yii\db\ActiveQuery */ public function getLanguages() { return $this->hasMany(Language::className(), ['language_id' => 'id']); }