/** * @return \yii\db\ActiveQuery */ public function getCountry() { return $this->hasOne(Countries::className(), ['id' => 'country_id']); }