public function getProvinces() { return @$this->hasOne(Province::className(), ['PROVINCE_ID' => 'province']); }
/** * @return \yii\db\ActiveQuery */ public function getProvince0() { return $this->hasOne(Province::className(), ['alpha2' => 'province']); }
public function getCustprov() { return $this->hasOne(Province::className(), ['PROVINCE_ID' => 'PROVINCE_ID']); }
/** * @return \yii\db\ActiveQuery */ public function getProvinces() { return $this->hasMany(Province::className(), ['country' => 'alpha2'])->inverseOf('country0'); }