Files
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 11:11:52 +01:00
public function limitrepetitions()
{
2014-12-06 12:12:55 +01:00
return $this->hasManyThrough('LimitRepetition', 'Limit', 'component_id');
2014-11-21 11:11:52 +01:00
}
2014-08-10 18:22:42 +02:00
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function limits()
{
return $this->hasMany('Limit', 'component_id');
}
}