mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add project relationships across all entities
This commit is contained in:
parent
57e3b59b91
commit
c94c3fa373
@ -152,6 +152,11 @@ class Credit extends BaseModel
|
|||||||
return $this->hasMany(CreditInvitation::class);
|
return $this->hasMany(CreditInvitation::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function project()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Project::class)->withTrashed();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The invoice which the credit has been created from.
|
* The invoice which the credit has been created from.
|
||||||
*/
|
*/
|
||||||
|
@ -149,6 +149,11 @@ class Quote extends BaseModel
|
|||||||
return $this->belongsTo(User::class, 'assigned_user_id', 'id')->withTrashed();
|
return $this->belongsTo(User::class, 'assigned_user_id', 'id')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function project()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Project::class)->withTrashed();
|
||||||
|
}
|
||||||
|
|
||||||
public function invitations()
|
public function invitations()
|
||||||
{
|
{
|
||||||
return $this->hasMany(QuoteInvitation::class);
|
return $this->hasMany(QuoteInvitation::class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user