KnpLabs / KnpLabs/KnpPaginatorBundle
Not showing when using doctrine odm with prime parameter.
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 332
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 3
Description
Hi,
KNP paginator is great, but I have one issue with it. If I make query with prime->(true), all working except pagination links is not rendered. Here is my query:
```
$qb = $dm->createQueryBuilder('AppBundle\Document\Post');
$qb->field('forum')->references($document)
->field('author')->prime(true)
->sort('created', 'asc');
```
When I remove `->field('author')->prime(true)` it's show again, but it's not good because each author of post need separate db query.
Contributor guide
Research direction
Start by reproducing the shown Doctrine ODM query with field('author')->prime(true), then compare pagination-link rendering with and without priming. Trace the Doctrine ODM pagination and link-generation paths; done means links render while primed authors remain supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100