Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Doctrine
MongoDB
Query
Query
count
Doctrine\MongoDB\Query\Query::count PHP Method
Query Class Documentation
Show file
Open project: doctrine/mongodb
count()
public
method
If the query resulted in a Cursor, the $foundOnly parameter will ignore limit/skip values if false (the default). If the Query resulted in an EagerCursor or ArrayIterator, the $foundOnly parameter has no effect.
public
count
(
boolean
$foundOnly
= false ) :
integer
$foundOnly
boolean
return
integer
public function count($foundOnly = false) { return $this->getIterator()->count($foundOnly); }
Query
__construct
count
debug
execute
getIterator
getQuery
getQueryOptions
getSingleResult
getType
iterate
prepareCursor
renameQueryOptions
toArray
withReadPreference