From 98993cfa9b15a3d77f092bba5235c86ce1e402bf Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 28 Nov 2014 07:40:59 +0100 Subject: [PATCH] Updated hasManyThrough --- app/models/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } /**