프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$collection | Doctrine\MongoDB\Collection | The Collection instance. | |
$iterator | Doctrine\MongoDB\Iterator | ||
$options | array | Query options | |
$query | array | Query structure generated by the Builder class. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
prepareCursor ( Doctrine\MongoDB\Cursor $cursor ) : Doctrine\MongoDB\CursorInterface | Prepare the Cursor returned by {@link Query::execute()}. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | Doctrine\MongoDB\Iterator |
public iterate ( ) : Doctrine\MongoDB\Iterator | ||
리턴 | Doctrine\MongoDB\Iterator |
protected prepareCursor ( Doctrine\MongoDB\Cursor $cursor ) : Doctrine\MongoDB\CursorInterface | ||
$cursor | Doctrine\MongoDB\Cursor | |
리턴 | Doctrine\MongoDB\CursorInterface |
protected Collection,Doctrine\MongoDB $collection | ||
리턴 | Doctrine\MongoDB\Collection |