Closed mvorisek closed 2 years ago
after a long discussion, I propose Model::executeCountQuery name
Model::executeCountQuery
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
Model::getCount
it is not only shorter than $m->action('count')->getOne() but the value is also casted properly to an integer
$m->action('count')->getOne()
integer
after a long discussion, I propose
Model::executeCountQuery
nameI do not want to name it
Model::getCount
, as such name might imply it is stored and/or no query is sent to the DBit is not only shorter than
$m->action('count')->getOne()
but the value is also casted properly to aninteger