From 60280ae3c666f268fb9de552a5468dd910aa05a4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 7 Feb 2023 13:45:05 +1100 Subject: [PATCH] minor fix for bank transaction relation to expense category --- app/Models/BankTransactionRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/BankTransactionRule.php b/app/Models/BankTransactionRule.php index a4ab0b8ed6..0284e787d7 100644 --- a/app/Models/BankTransactionRule.php +++ b/app/Models/BankTransactionRule.php @@ -165,7 +165,7 @@ class BankTransactionRule extends BaseModel public function expense_category() { - return $this->belongsTo(ExpenseCategory::class)->withTrashed(); + return $this->belongsTo(ExpenseCategory::class, 'category_id', 'id')->withTrashed(); } } \ No newline at end of file