Skip to content

Add Model::executeCountQuery() method#1008

Merged
mvorisek merged 6 commits intodevelopfrom
model_count
Jun 17, 2022
Merged

Add Model::executeCountQuery() method#1008
mvorisek merged 6 commits intodevelopfrom
model_count

Conversation

@mvorisek
Copy link
Copy Markdown
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

@mvorisek mvorisek merged commit 28506be into develop Jun 17, 2022
@mvorisek mvorisek deleted the model_count branch June 17, 2022 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant