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