Свойство | Type | Description | |
---|---|---|---|
$collection | Doctrine\MongoDB\Collection | The Collection instance. | |
$iterator | Doctrine\MongoDB\Iterator | ||
$options | array | Query options | |
$query | array | Query structure generated by the Builder class. |
Méthode | Description | |
---|---|---|
__construct ( Doctrine\MongoDB\Collection $collection, array $query, array $options ) | Constructor. | |
count ( boolean $foundOnly = false ) : integer | Count the number of results for this query. | |
debug ( string $name = null ) : mixed | Return an array of information about the query structure for debugging. | |
execute ( ) : mixed | Execute the query and return its result. | |
getIterator ( ) : Doctrine\MongoDB\Iterator | Execute the query and return its result, which must be an Iterator. | |
getQuery ( ) : array | Return the query structure. | |
getSingleResult ( ) : array | object | null | Execute the query and return the first result. | |
getType ( ) : integer | Return the query type. | |
iterate ( ) : Doctrine\MongoDB\Iterator | Alias of {@link Query::getIterator()}. | |
toArray ( ) : array | Execute the query and return its results as an array. |
Méthode | Description | |
---|---|---|
prepareCursor ( Doctrine\MongoDB\Cursor $cursor ) : Doctrine\MongoDB\CursorInterface | Prepare the Cursor returned by {@link Query::execute()}. |
Méthode | Description | |
---|---|---|
getQueryOptions ( ) : array | Returns an array containing the specified keys and their values from the query array, provided they exist and are not null. | |
renameQueryOptions ( array $options, array $rename ) : array | Returns an array with its keys renamed based on the translation map. | |
withReadPreference ( Doctrine\MongoDB\Database | Doctrine\MongoDB\Collection $object, Closure $closure ) : mixed | Executes a closure with a temporary read preference on a database or collection. |
public __construct ( Doctrine\MongoDB\Collection $collection, array $query, array $options ) | ||
$collection | Doctrine\MongoDB\Collection | |
$query | array | |
$options | array |
public getIterator ( ) : Doctrine\MongoDB\Iterator | ||
Résultat | Doctrine\MongoDB\Iterator |
public iterate ( ) : Doctrine\MongoDB\Iterator | ||
Résultat | Doctrine\MongoDB\Iterator |
protected prepareCursor ( Doctrine\MongoDB\Cursor $cursor ) : Doctrine\MongoDB\CursorInterface | ||
$cursor | Doctrine\MongoDB\Cursor | |
Résultat | Doctrine\MongoDB\CursorInterface |
protected Collection,Doctrine\MongoDB $collection | ||
Résultat | Doctrine\MongoDB\Collection |
protected Iterator,Doctrine\MongoDB $iterator | ||
Résultat | Doctrine\MongoDB\Iterator |
protected array $query | ||
Résultat | array |