Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCity()
 {
     return $this->hasOne(City::className(), ['id' => 'city_id']);
 }
Пример #2
0
 public function getCity()
 {
     return $this->hasOne(\app\modules\city\models\City::className(), ['id' => 'city_id']);
 }