Skip to content

Firefly III: a personal finances manager

Updated hasManyThrough

James Cole98993cfa9b15
diff --git a/app/models/Account.php b/app/models/Account.php
index 4cdf081f74..3f2d087fee 100644
--- a/app/models/Account.php
+++ b/app/models/Account.php
@@ -92,7 +92,7 @@ class Account extends Ardent
*/
public function transactionjournals()
{
- return $this->hasManyThrough('TransactionJournal', 'Transaction');
+ return $this->hasManyThrough('TransactionJournal', 'Transaction','transaction_journal_id','id');
}
/**