Пример #1
0
 public function getOffice()
 {
     return $this->hasOne(MOffice::className(), ['office_id' => 'office_id']);
 }
Пример #2
0
 public function getOffices()
 {
     return $this->hasMany(MOffice::className(), ['gh_id' => 'gh_id']);
 }
Пример #3
0
 public function getDirectedOffice()
 {
     return $this->hasOne(MOffice::className(), ['manager' => 'name', 'mobile' => 'mobile']);
 }
Пример #4
0
 public function getOffices()
 {
     return $this->hasMany(MOffice::className(), ['office_id' => 'office_id'])->viaTable('wx_rel_office_msc', ['msc_id' => 'id']);
 }