mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
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:
parent
559e1bc6a6
commit
b73725bd9a
2 changed files with 321 additions and 22 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue