firefly-iii/app/models/Budget.php

21 lines
389 B
PHP
Raw Normal View History

<?php
class Budget extends Component
{
protected $isSubclass = true;
2014-11-21 04:11:52 -06:00
public function limitrepetitions()
{
2014-12-06 05:12:55 -06:00
return $this->hasManyThrough('LimitRepetition', 'Limit', 'component_id');
2014-11-21 04:11:52 -06:00
}
2014-08-10 11:22:42 -05:00
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function limits()
{
return $this->hasMany('Limit', 'component_id');
}
}