bug fix in clients controller
This commit is contained in:
@@ -29,13 +29,16 @@ class Client extends Model
|
||||
return $this->hasMany('App\Models\MeetingReport', 'client', 'id');
|
||||
}
|
||||
public function auth_user_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'auth_user_id');
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'auth_user_id');
|
||||
}
|
||||
public function account_manager(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'auth_user_id');
|
||||
}
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'created_by');
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'created_by');
|
||||
}
|
||||
public function modified_by_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'last_modified_by');
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'last_modified_by');
|
||||
}
|
||||
public function short_code_info(){
|
||||
return $this->hasMany('App\Models\ShortCode', 'client_id', 'id');
|
||||
|
||||
Reference in New Issue
Block a user