Use other method of collecting query fields. #142

This commit is contained in:
James Cole
2016-04-29 21:52:15 +02:00
parent 94a79876ce
commit 9baadd3793
9 changed files with 19 additions and 41 deletions

View File

@@ -183,7 +183,7 @@ class AccountRepository implements AccountRepositoryInterface
->where('destination_account.id', $account->id)
->whereIn('source_account.id', $ids)
->after($start)
->get(TransactionJournal::QUERYFIELDS);
->get(TransactionJournal::queryFields());
return $journals;
}
@@ -273,7 +273,7 @@ class AccountRepository implements AccountRepositoryInterface
->where('source_account.id', $account->id)
->whereIn('destination_account.id', $ids)
->after($start)
->get(TransactionJournal::QUERYFIELDS);
->get(TransactionJournal::queryFields());
return $journals;
}
@@ -328,7 +328,7 @@ class AccountRepository implements AccountRepositoryInterface
->after($start)
->before($end);
$set = $query->get(TransactionJournal::QUERYFIELDS);
$set = $query->get(TransactionJournal::queryFields());
return $set;
}