/**
  * @return \yii\db\ActiveQuery
  */
 public function getCities()
 {
     return $this->hasMany(City::className(), ['country_id' => 'country_id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCities()
 {
     return $this->hasMany(City::className(), ['province' => 'alpha2']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdCity()
 {
     return $this->hasOne(City::className(), ['id' => 'id_city']);
 }
示例#4
0
文件: Audio.php 项目: roman1970/lis
 public function getCity()
 {
     return $this->hasMany(City::className(), ['city_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCity()
 {
     return $this->hasOne(City::className(), ['Id' => 'cityId']);
 }
示例#6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCity0()
 {
     return $this->hasOne(City::className(), ['alpha' => 'city']);
 }
示例#7
0
 public function getCities()
 {
     return $this->hasMany(City::className(), ['region_id' => 'id']);
 }