mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 20:25:28 +00:00
21 lines
389 B
PHP
21 lines
389 B
PHP
<?php
|
|
|
|
class Budget extends Component
|
|
{
|
|
protected $isSubclass = true;
|
|
|
|
public function limitrepetitions()
|
|
{
|
|
return $this->hasManyThrough('LimitRepetition', 'Limit', 'component_id');
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function limits()
|
|
{
|
|
return $this->hasMany('Limit', 'component_id');
|
|
}
|
|
|
|
|
|
}
|