Prevented issue sending invoice when contact or user is deleted

This commit is contained in:
Hillel Coren 2015-02-10 12:00:59 +02:00
parent 99568e4cee
commit 2af014dad2

View File

@ -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()