Skip to content

Commit

Permalink
replaced paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Aug 20, 2024
1 parent 971e584 commit 7463999
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Repository/SharedProjectTimesheetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

use App\Entity\Customer;
use App\Entity\Project;
use App\Repository\Loader\DefaultLoader;
use App\Repository\Paginator\LoaderPaginator;
use App\Repository\Paginator\QueryBuilderPaginator;
use App\Repository\Query\BaseQuery;
use App\Repository\Query\ProjectQuery;
use App\Utils\Pagination;
Expand All @@ -34,7 +33,7 @@ public function findAllSharedProjects(BaseQuery $query): Pagination
->leftJoin(Customer::class, 'c', Join::WITH, 'spt.customer = c')
->orderBy('p.name, c.name, spt.shareKey', 'ASC');

$loader = new LoaderPaginator(new DefaultLoader(), $qb, $this->count([]));
$loader = new QueryBuilderPaginator($qb, $this->count([]));

return new Pagination($loader, $query);
}
Expand Down

0 comments on commit 7463999

Please sign in to comment.