diff --git a/app/Models/Common/Company.php b/app/Models/Common/Company.php index 700472c81..03c069fd4 100644 --- a/app/Models/Common/Company.php +++ b/app/Models/Common/Company.php @@ -227,7 +227,7 @@ class Company extends Eloquent implements Ownable public function owner() { - return $this->belongsTo('App\Models\Auth\User', 'id', 'created_by'); + return $this->belongsTo('App\Models\Auth\User', 'created_by', 'id')->withDefault(['name' => trans('general.na')]); } public function reconciliations()