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

Optional parameter for resetSelect() call in Builder's countAll(); #1217

Merged
merged 5 commits into from
Oct 4, 2018

Conversation

nowackipawel
Copy link
Contributor

Identical as is in countAllResult().

required changes in test file
fix: countAllResults call
Additional bug fix: ErrorException Undefined variable: orderby
in call: $builder->countAllResults(true,   true|false) when  $this->QBOrderBy is empty.
@nowackipawel
Copy link
Contributor Author

@lonnieezell
There are some fixes for current code version (178fb17), support for OPTIONAL resetSelect call in builder get method (a363e0a), fix in test file according to manual and builder code (19b13b9), support for OPTIONAL resetSelect call in counAllResults method (745aa7c)

It is useful when you'd like to get query results and counts (all records and filtered as well) fast.

I am using this since posted here without any problems :)

@jim-parry jim-parry added this to the 4.0.1? milestone Sep 27, 2018
@lonnieezell
Copy link
Member

I'm ok with this addition. Please add to docs.

Additional docs for countAll
Correction for countAllResult (docs contained wrong calls which didn't meet what is in the code)
@nowackipawel
Copy link
Contributor Author

@lonnieezell : done.

@lonnieezell lonnieezell merged commit f17ad0a into codeigniter4:develop Oct 4, 2018
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.

3 participants