예제 #1
0
파일: Custom.php 프로젝트: noikiy/wowewe
 public function getOffice()
 {
     return $this->hasOne(MOffice::className(), ['office_id' => 'office_id']);
 }
예제 #2
0
파일: MGh.php 프로젝트: noikiy/wowewe
 public function getOffices()
 {
     return $this->hasMany(MOffice::className(), ['gh_id' => 'gh_id']);
 }
예제 #3
0
파일: MStaff.php 프로젝트: noikiy/wowewe
 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']);
 }