This commit is contained in:
James Cole
2017-12-30 21:04:04 +01:00
parent 6d9baaa499
commit d9dd00eb39
10 changed files with 77 additions and 3 deletions

View File

@@ -345,6 +345,15 @@ class Account extends Model
$this->attributes['iban'] = Crypt::encrypt($value);
}
/**
* @codeCoverageIgnore
* Get all of the notes.
*/
public function notes()
{
return $this->morphMany(Note::class, 'noteable');
}
/**
* @codeCoverageIgnore
*

View File

@@ -132,7 +132,7 @@ class Bill extends Model
*/
public function notes()
{
return $this->morphMany('FireflyIII\Models\Note', 'noteable');
return $this->morphMany(Note::class, 'noteable');
}
/**

View File

@@ -57,8 +57,8 @@ class Note extends Model
/**
* @codeCoverageIgnore
* Get all of the owning noteable models. Currently piggy bank and
* transaction journal.
*
* Get all of the owning noteable models.
*/
public function noteable()
{