/** * @return \yii\db\ActiveQuery */ public function getCities() { return $this->hasMany(City::className(), ['province' => 'alpha2']); }
/** * @return \yii\db\ActiveQuery */ public function getCity0() { return $this->hasOne(City::className(), ['alpha' => 'city']); }