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