/** * @return \yii\db\ActiveQuery */ public function getCity() { return $this->hasOne(GeobaseCity::className(), ['id' => 'city_id']); }
/** * @return \yii\db\ActiveQuery */ public function getGeobaseCity() { return $this->hasOne(GeobaseCity::className(), ['id' => 'geobase_city_id'])->orderBy(['name' => SORT_ASC]); }