Skip to content
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

[5.8] Fix bug in paginate method in Builder.php #28991

Closed
wants to merge 1 commit into from

Conversation

always18
Copy link

Laravel has facility to pass columns (having clause columns define in select) in paginate method but it won't pass it to getCountForPagination() method which requires columns which can come from paginate method. Due to this, it is not able to add having clause in first count agreegator query hit to get total no of records.

Laravel has facility to pass columns (having clause columns define in select) in paginate method but it won't pass it to getCountForPagination() method which requires columns which can come from paginate method. Due to this, it is not able to add having clause in first count agreegator query hit to get total no of records.
@driesvints
Copy link
Member

@always18 please provide a practical code example on how this could be useful and how this would work. We recently removed this ability from the base query builder as well because it was conflicting with selecting specific columns.

@GrahamCampbell GrahamCampbell changed the title Fix bug in paginate method in Builder.php [5.8] Fix bug in paginate method in Builder.php Jun 29, 2019
@GrahamCampbell
Copy link
Member

I think I've seen this before. I keeps getting added and removed after when it's added, it also is considered a bug by others...

@GrahamCampbell
Copy link
Member

#28937
#9515
#9385

@deleugpn
Copy link
Contributor

#23259

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.

5 participants