This commit is contained in:
James Cole
2015-02-23 21:55:52 +01:00
parent 3e28c0c00a
commit 49066c282a
11 changed files with 482 additions and 26 deletions

View File

@@ -54,12 +54,7 @@ class BudgetRepository implements BudgetRepositoryInterface
$set = $setQuery->get(['transaction_journals.*']);
$count = $countQuery->count();
$items = [];
foreach ($set as $entry) {
$items[] = $entry;
}
return new LengthAwarePaginator($items, $count, $take, $offset);
return new LengthAwarePaginator($set, $count, $take, $offset);
}
/**