예제 #1
0
 public function getCity()
 {
     return $this->hasMany(FCity::className(), ['id_region' => 'id'])->viaTable('f_region', ['id_okrug' => 'id']);
 }
예제 #2
0
파일: User.php 프로젝트: a7000q/yasvoboden
 public function getCity()
 {
     return $this->hasOne(FCity::className(), ['id' => 'id_city']);
 }
예제 #3
0
 public function getCity()
 {
     return $this->hasMany(FCity::className(), ['id_region' => 'id']);
 }