Skip to content

Commit

Permalink
don't fetch associated collections in pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jan 17, 2015
1 parent 54f7db7 commit 55e3c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ protected function findAll($entityClass, $page = 1, $maxPerPage = 15, $sortField
$query->orderBy('entity.'.$sortField, $sortDirection);
}

$paginator = new Pagerfanta(new DoctrineORMAdapter($query));
$paginator = new Pagerfanta(new DoctrineORMAdapter($query, false));
$paginator->setMaxPerPage($maxPerPage);
$paginator->setCurrentPage($page);

Expand Down

0 comments on commit 55e3c46

Please sign in to comment.