PHP Class Doctrine\ODM\MongoDB\Query\Query

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

Méthodes publiques

Méthode 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 méthode

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 méthode

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

current() public méthode

public current ( )

debug() public méthode

public debug ( $name = null )

execute() public méthode

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

first() public méthode

public first ( )

getIterator() public méthode

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

getSingleResult() public méthode

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

iterate() public méthode

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

key() public méthode

public key ( )

last() public méthode

public last ( )

next() public méthode

public next ( )

rewind() public méthode

public rewind ( )

toArray() public méthode

public toArray ( )

valid() public méthode

public valid ( )