From b6e0b985c239a90f3636276be6c707f9b5b46f06 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 11 Sep 2014 22:46:11 +0200 Subject: [PATCH] Small bug fixed in account scope. --- app/models/Transaction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/Transaction.php b/app/models/Transaction.php index 9ca780cb54..9452d0f421 100644 --- a/app/models/Transaction.php +++ b/app/models/Transaction.php @@ -30,7 +30,7 @@ use LaravelBook\Ardent\Builder; * @method static \Illuminate\Database\Query\Builder|\Transaction whereTransactionJournalId($value) * @method static \Illuminate\Database\Query\Builder|\Transaction whereDescription($value) * @method static \Illuminate\Database\Query\Builder|\Transaction whereAmount($value) - * @method static \Transaction account($account) + * @method static \Transaction accountIs($account) * @method static \Transaction after($date) * @method static \Transaction before($date) * @method static \Transaction lessThan($amount) @@ -89,7 +89,7 @@ class Transaction extends Ardent return $this->belongsTo('Piggybank'); } - public function scopeAccount(Builder $query, Account $account) + public function scopeAccountIs(Builder $query, Account $account) { $query->where('transactions.account_id', $account->id); }