PHP Class Doctrine\ODM\MongoDB\Query\Query

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Inheritance: extends Doctrine\MongoDB\Query\Query
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\MongoDB\Query\AbstractQuery $query, DocumentManager $dm, ClassMetadata $class, $hydrate )
count ( boolean $all = false ) : integer Count the number of results for this query.
current ( )
debug ( $name = null )
execute ( array $options = [] )
first ( )
getIterator ( array $options = [] )
getSingleResult ( array $options = [] ) : object Execute the query and get a single result
iterate ( ) : Cursor Iterator over the query using the Cursor.
key ( )
last ( )
next ( )
rewind ( )
toArray ( )
valid ( )

Method Details

__construct() public method

public __construct ( Doctrine\MongoDB\Query\AbstractQuery $query, DocumentManager $dm, ClassMetadata $class, $hydrate )
$query Doctrine\MongoDB\Query\AbstractQuery
$dm Doctrine\ODM\MongoDB\DocumentManager
$class Doctrine\ODM\MongoDB\Mapping\ClassMetadata

count() public method

Count the number of results for this query.
public count ( boolean $all = false ) : integer
$all boolean
return integer $count

current() public method

public current ( )

debug() public method

public debug ( $name = null )

execute() public method

public execute ( array $options = [] )
$options array

first() public method

public first ( )

getIterator() public method

public getIterator ( array $options = [] )
$options array

getSingleResult() public method

Execute the query and get a single result
public getSingleResult ( array $options = [] ) : object
$options array
return object $document The single document.

iterate() public method

Iterator over the query using the Cursor.
public iterate ( ) : Cursor
return Doctrine\ODM\MongoDB\Cursor $cursor

key() public method

public key ( )

last() public method

public last ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

toArray() public method

public toArray ( )

valid() public method

public valid ( )