mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-10 14:44:26 +00:00
Add statistics to budget, although unused atm.
This commit is contained in:
@@ -128,4 +128,9 @@ class Budget extends Model
|
|||||||
get: static fn ($value) => (int)$value,
|
get: static fn ($value) => (int)$value,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function primaryPeriodStatistics(): MorphMany
|
||||||
|
{
|
||||||
|
return $this->morphMany(PeriodStatistic::class, 'primary_statable');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -81,7 +81,7 @@ class Category extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all of the category's notes.
|
* Get all the category's notes.
|
||||||
*/
|
*/
|
||||||
public function notes(): MorphMany
|
public function notes(): MorphMany
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user