public function getManageOutlet() { return $this->hasOne(\app\models\ClientOutlet::className(), ['original_office_id' => 'office_id', 'client_id' => 'client_id']); }
public function getOutlets() { return $this->hasMany(\app\models\ClientOutlet::className(), ['outlet_id' => 'outlet_id'])->viaTable('client_employee_outlet', ['employee_id' => 'employee_id']); }
public function getPromoteOutlet() { return $this->hasOne(\app\models\ClientOutlet::className(), ['original_office_id' => 'belongto']); }
public function getOutlets() { return $this->hasMany(\app\models\ClientOutlet::className(), ['supervision_organization_id' => 'organization_id']); }
public function getOutlet() { return $this->hasOne(ClientOutlet::className(), ['original_office_id' => 'office_id']); }