/** * @return \yii\db\ActiveQuery */ public function getMtprovinces() { return $this->hasMany(Mtprovinces::className(), ['province_country_id' => 'country_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCityProvince() { return $this->hasOne(Mtprovinces::className(), ['province_id' => 'city_province_id']); }