Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGeobaseContacts()
 {
     return $this->hasMany(GeobaseContact::className(), ['geobase_city_id' => 'id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContact()
 {
     return $this->hasOne(GeobaseContact::className(), ['id' => 'contact_id']);
 }