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

Add Model::executeCountQuery() method #1008

Merged
merged 6 commits into from
Jun 17, 2022
Merged

Add Model::executeCountQuery() method #1008

merged 6 commits into from
Jun 17, 2022

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Jun 8, 2022

after a long discussion, I propose Model::executeCountQuery name

I do not want to name it Model::getCount, as such name might imply it is stored and/or no query is sent to the DB

it is not only shorter than $m->action('count')->getOne() but the value is also casted properly to an integer

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.

1 participant