示例#1
0
 public function getCountries()
 {
     return $this->hasMany(Countries::className(), ['continent_code' => 'code']);
 }
示例#2
0
 public function getCountries()
 {
     return $this->hasOne(Countries::className(), ['code' => 'countryid']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdCountry()
 {
     return $this->hasOne(Countries::className(), ['id' => 'id_country']);
 }
示例#4
0
 public function getCountries()
 {
     return $this->hasMany(Countries::className(), ['code' => jackpotDetails::className() . 'countryid']);
 }
示例#5
0
文件: Brands.php 项目: Robot72/task1
 public function getNameCountry()
 {
     return $this->hasOne(Countries::className(), ['id' => 'id_country'])->one()->name;
 }