Fix notes in link types.

This commit is contained in:
James Cole
2018-01-17 10:40:44 +01:00
parent 70da38193f
commit 80f96abf08
4 changed files with 43 additions and 21 deletions

View File

@@ -95,6 +95,15 @@ class TransactionJournalLink extends Model
return $this->belongsTo(LinkType::class);
}
/**
* @codeCoverageIgnore
* Get all of the notes.
*/
public function notes()
{
return $this->morphMany(Note::class, 'noteable');
}
/**
* @codeCoverageIgnore
*