/** * @return \yii\db\ActiveQuery */ public function getProvinces() { return $this->hasMany(Province::className(), ['region_id' => 'region_id']); }
public function getProvince() { return $this->hasOne(Province::className(), ['provinceId' => 'provinceId']); }
public function getProvince() { return $this->hasOne(Province::className(), ['PROVINCE_ID' => 'dept_prov_id']); }