/** * @return \yii\db\ActiveQuery */ public function getTranslations() { return $this->hasMany(ReceivedCountryTranslation::className(), ['country_code' => 'code'])->where(['language_id' => \common\components\TFA::$info['language_id']])->indexBy('language_id'); }
/** * @return \yii\db\ActiveQuery */ public function getCountryTranslations() { return $this->hasMany(ReceivedCountryTranslation::className(), ['language_id' => 'id']); }