Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCountry()
 {
     return $this->hasOne(ResCountry::className(), ['id' => 'country_id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getResCountries()
 {
     return $this->hasMany(ResCountry::className(), ['currency_id' => 'id']);
 }