firefly-iii/app/models/Budget.php
2014-12-14 20:40:02 +01:00

29 lines
585 B
PHP

<?php
/**
* Class Budget
*/
class Budget extends Component
{
// @codingStandardsIgnoreStart
protected $isSubclass = true;
// @codingStandardsIgnoreEnd
/**
* @return \Illuminate\Database\Eloquent\Relations\HasManyThrough
*/
public function limitrepetitions()
{
return $this->hasManyThrough('LimitRepetition', 'BudgetLimit', 'component_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function budgetlimits()
{
return $this->hasMany('BudgetLimit', 'component_id');
}
}