mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Give journals a location.
This commit is contained in:
@@ -213,6 +213,15 @@ class TransactionJournal extends Model
|
|||||||
return $this->belongsTo(Bill::class);
|
return $this->belongsTo(Bill::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
* @return MorphMany
|
||||||
|
*/
|
||||||
|
public function locations(): MorphMany
|
||||||
|
{
|
||||||
|
return $this->morphMany(Location::class, 'locatable');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
* @return BelongsToMany
|
* @return BelongsToMany
|
||||||
|
Reference in New Issue
Block a user