예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGeozones()
 {
     return $this->hasMany(Geozones::className(), ['CountryId' => 'CountryId']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGeoZone()
 {
     return $this->hasOne(Geozones::className(), ['GeoZoneId' => 'GeoZoneId']);
 }