Beispiel #1
0
 public function getCountries()
 {
     return $this->hasMany(Countries::className(), ['continent_code' => 'code']);
 }
Beispiel #2
0
 public function getCountries()
 {
     return $this->hasOne(Countries::className(), ['code' => 'countryid']);
 }
Beispiel #3
0
 /**
  * @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']);
 }
Beispiel #5
0
 public function getNameCountry()
 {
     return $this->hasOne(Countries::className(), ['id' => 'id_country'])->one()->name;
 }