/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['country_id' => 'country_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['province' => 'alpha2']); }
/** * @return \yii\db\ActiveQuery */ public function getIdCity() { return $this->hasOne(City::className(), ['id' => 'id_city']); }
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']); }
/** * @return \yii\db\ActiveQuery */ public function getCity0() { return $this->hasOne(City::className(), ['alpha' => 'city']); }
public function getCities() { return $this->hasMany(City::className(), ['region_id' => 'id']); }