1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix for expense documents

This commit is contained in:
David Bomba 2021-01-04 22:22:48 +11:00
parent 66d6595a90
commit 2dd7e07c82

View File

@ -72,6 +72,11 @@ class Expense extends BaseModel
return $this->morphMany(Document::class, 'documentable');
}
public function user()
{
return $this->belongsTo(User::class)->withTrashed();
}
public function assigned_user()
{
return $this->belongsTo(User::class, 'assigned_user_id', 'id');