예제 #1
0
파일: Custom.php 프로젝트: noikiy/wowewe
 public function getManageOutlet()
 {
     return $this->hasOne(\app\models\ClientOutlet::className(), ['original_office_id' => 'office_id', 'client_id' => 'client_id']);
 }
예제 #2
0
 public function getOutlets()
 {
     return $this->hasMany(\app\models\ClientOutlet::className(), ['outlet_id' => 'outlet_id'])->viaTable('client_employee_outlet', ['employee_id' => 'employee_id']);
 }
예제 #3
0
파일: MUser.php 프로젝트: noikiy/wowewe
 public function getPromoteOutlet()
 {
     return $this->hasOne(\app\models\ClientOutlet::className(), ['original_office_id' => 'belongto']);
 }
예제 #4
0
 public function getOutlets()
 {
     return $this->hasMany(\app\models\ClientOutlet::className(), ['supervision_organization_id' => 'organization_id']);
 }
예제 #5
0
파일: MOffice.php 프로젝트: noikiy/wowewe
 public function getOutlet()
 {
     return $this->hasOne(ClientOutlet::className(), ['original_office_id' => 'office_id']);
 }