Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCities()
 {
     return $this->hasMany(City::className(), ['province' => 'alpha2']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCity0()
 {
     return $this->hasOne(City::className(), ['alpha' => 'city']);
 }