Prevented issue sending invoice when contact or user is deleted
This commit is contained in:
parent
99568e4cee
commit
2af014dad2
1 changed files with 2 additions and 2 deletions
|
|
@ -9,12 +9,12 @@ class Invitation extends EntityModel
|
|||
|
||||
public function contact()
|
||||
{
|
||||
return $this->belongsTo('Contact');
|
||||
return $this->belongsTo('Contact')->withTrashed();
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('User');
|
||||
return $this->belongsTo('User')->withTrashed();
|
||||
}
|
||||
|
||||
public function getLink()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue