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