mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:24:40 -04:00
Slight modification for query of company owner
This commit is contained in:
parent
406b21625c
commit
85b58ec8df
@ -476,7 +476,8 @@ class Company extends BaseModel
|
|||||||
|
|
||||||
public function owner()
|
public function owner()
|
||||||
{
|
{
|
||||||
return $this->company_users->where('is_owner', true)->first()->user;
|
return $this->company_users()->withTrashed()->where('is_owner', true)->first()->user;
|
||||||
|
//return $this->company_users->where('is_owner', true)->first()->user;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function resolveRouteBinding($value, $field = null)
|
public function resolveRouteBinding($value, $field = null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user