mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 20:38:57 +00:00
References
This commit is contained in:
@@ -5,6 +5,26 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Budget extends Model
|
||||
{
|
||||
|
||||
//
|
||||
|
||||
public function budgetlimits()
|
||||
{
|
||||
return $this->hasMany('BudgetLimit');
|
||||
}
|
||||
|
||||
public function limitrepetitions()
|
||||
{
|
||||
return $this->hasManyThrough('LimitRepetition', 'BudgetLimit', 'budget_id');
|
||||
}
|
||||
|
||||
public function transactionjournals()
|
||||
{
|
||||
return $this->belongsToMany('TransactionJournal', 'budget_transaction_journal', 'budget_id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('User');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user