Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Always use distinct when counting entries in KnpPager#45

Merged
stephpy merged 1 commit into
stephpy:masterfrom
venimus:distinct-count
Aug 24, 2015
Merged

Always use distinct when counting entries in KnpPager#45
stephpy merged 1 commit into
stephpy:masterfrom
venimus:distinct-count

Conversation

@venimus
Copy link
Copy Markdown
Contributor

@venimus venimus commented Aug 24, 2015

fixes #43

stephpy added a commit that referenced this pull request Aug 24, 2015
Always use distinct when counting entries in KnpPager
@stephpy stephpy merged commit 8b59d5b into stephpy:master Aug 24, 2015
@stephpy
Copy link
Copy Markdown
Owner

stephpy commented Aug 24, 2015

thanks

@venimus
Copy link
Copy Markdown
Contributor Author

venimus commented Aug 24, 2015

I didn't think of it earlier, but actually it would be good to have a way to change the option, because someone might not want to use distinct for performance reasons.

@venimus venimus deleted the distinct-count branch August 24, 2015 08:26
@stephpy
Copy link
Copy Markdown
Owner

stephpy commented Aug 24, 2015

Yep, but the paginator count would be wrong, imo it's a good thing to keep distinct.

For performances reasons, user can easily override pager class. :)

@venimus
Copy link
Copy Markdown
Contributor Author

venimus commented Aug 24, 2015

👍 It was what actually I did to fix the issue, but this part also needs refactoring because I had to override using Compiler pass. Just setting my class in settings.yml does not work because of service dependancies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paginator count is wrong when there are more than 1 components in an action

2 participants