public function getOffice() { return $this->hasOne(MOffice::className(), ['office_id' => 'office_id']); }
public function getOffices() { return $this->hasMany(MOffice::className(), ['gh_id' => 'gh_id']); }
public function getDirectedOffice() { return $this->hasOne(MOffice::className(), ['manager' => 'name', 'mobile' => 'mobile']); }
public function getOffices() { return $this->hasMany(MOffice::className(), ['office_id' => 'office_id'])->viaTable('wx_rel_office_msc', ['msc_id' => 'id']); }