connection between docs or transactions added to recurring messages part #1pbthq3

This commit is contained in:
Sevan Nerse
2021-11-03 18:37:57 +03:00
parent 2087a2de3b
commit b6f5394bbd
7 changed files with 112 additions and 1 deletions

View File

@ -126,6 +126,11 @@ class Transaction extends Model
return $this->belongsTo('App\Models\Auth\User', 'contact_id', 'id');
}
public function parent()
{
return $this->belongsTo('App\Models\Banking\Transaction', 'parent_id');
}
/**
* Scope to only include contacts of a given type.
*