public function getCountries() { return $this->hasMany(Countries::className(), ['continent_code' => 'code']); }
public function getCountries() { return $this->hasOne(Countries::className(), ['code' => 'countryid']); }
/** * @return \yii\db\ActiveQuery */ public function getIdCountry() { return $this->hasOne(Countries::className(), ['id' => 'id_country']); }
public function getCountries() { return $this->hasMany(Countries::className(), ['code' => jackpotDetails::className() . 'countryid']); }
public function getNameCountry() { return $this->hasOne(Countries::className(), ['id' => 'id_country'])->one()->name; }