Use Doctrine paginator in table adapter.

This fixes the problem that the pagination were wrong (only one element on a page and other things like that).
This commit is contained in:
Jan Böhmer 2020-01-16 21:42:29 +01:00
parent 559e1bc6a6
commit b73725bd9a
2 changed files with 321 additions and 22 deletions

View file

@ -216,6 +216,7 @@ final class PartsDataTable implements DataTableTypeInterface
->addOrderBy('name')
->createAdapter(CustomORMAdapter::class, [
'allow_fetch_join' => true,
'query' => function (QueryBuilder $builder): void {
$this->getQuery($builder);
},