mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixes and tests for transactions.
This commit is contained in:
@@ -36,11 +36,11 @@ class Transaction extends Elegant
|
||||
|
||||
public function budgets()
|
||||
{
|
||||
return $this->belongsToMany('Budget');
|
||||
return $this->belongsToMany('Budget','component_transaction','transaction_id','component_id');
|
||||
}
|
||||
|
||||
public function categories()
|
||||
{
|
||||
return $this->belongsToMany('Category');
|
||||
return $this->belongsToMany('Category','component_transaction','transaction_id','component_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user