bug fixes, AM change feature, refactoring
This commit is contained in:
@@ -9,9 +9,10 @@ class OfficeLocation extends Model
|
||||
protected $guarded = array('id');
|
||||
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'user_id');
|
||||
}
|
||||
public function country_manager_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'country_manager_id');
|
||||
// return $this->hasOne('App\Models\StaffMember', 'id', 'country_manager_id');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'country_manager_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user