Fixes and tests for transactions.

This commit is contained in:
James Cole
2014-07-09 13:45:27 +02:00
parent 61f7fbe951
commit 3fc793f014
3 changed files with 24 additions and 3 deletions

View File

@@ -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');
}
}