-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not showing when using doctrine odm with prime parameter. #326
Comments
I do it other way, pass ArrayCollection of posts to paginator, and in forum document I add custom repository method with prime. Now working, but I dont know wy because there are the same db queries as before.
|
After all, not working as expected, sorting very strange, first one user with posts 'asc' then second etc... and Forum document must have array collection with Posts Id's otherwise pager don't show. |
As a workaround you could do reference priming manually. For example add BaseRepository class with method
and then simply call in controller
|
This issue is very relevant: doctrine/mongodb-odm#1283 |
Hello @veego sorry for the late response, has your issue been fixed? |
Hello, I'm currently facing this issue, is there a resolution? |
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:
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.The text was updated successfully, but these errors were encountered: