2014-07-05 12:44:26 -05:00
|
|
|
<?php
|
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
class Budget extends Component
|
|
|
|
{
|
2014-07-05 12:44:26 -05:00
|
|
|
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
|
|
|
|
*/
|
2014-07-20 11:24:27 -05:00
|
|
|
public function limits()
|
|
|
|
{
|
|
|
|
return $this->hasMany('Limit', 'component_id');
|
|
|
|
}
|
|
|
|
|
2014-07-05 12:44:26 -05:00
|
|
|
|
|
|
|
}
|