Method |
Description |
|
__clone ( ) |
|
|
__construct ( Doctrine\MongoDB\Collection $collection ) |
Create a new query builder. |
|
addAnd ( array | Expr $expression ) |
Add one or more $and clauses to the current query. |
|
addManyToSet ( array $values ) |
Append multiple values to the current array field only if they do not
already exist in the array. |
|
addNor ( array | Expr $expression ) |
Add one or more $nor clauses to the current query. |
|
addOr ( array | Expr $expression ) |
Add one or more $or clauses to the current query. |
|
addToSet ( mixed | Expr $valueOrExpression ) |
Append one or more values to the current array field only if they do not
already exist in the array. |
|
all ( array $values ) |
Specify $all criteria for the current field. |
|
bitAnd ( integer $value ) |
Apply a bitwise and operation on the current field. |
|
bitOr ( integer $value ) |
Apply a bitwise or operation on the current field. |
|
bitXor ( integer $value ) |
Apply a bitwise xor operation on the current field. |
|
bitsAllClear ( integer | array | MongoBinData $value ) |
Matches documents where all of the bit positions given by the query are
clear. |
|
bitsAllSet ( integer | array | MongoBinData $value ) |
Matches documents where all of the bit positions given by the query are
set. |
|
bitsAnyClear ( integer | array | MongoBinData $value ) |
Matches documents where any of the bit positions given by the query are
clear. |
|
bitsAnySet ( integer | array | MongoBinData $value ) |
Matches documents where any of the bit positions given by the query are
set. |
|
caseSensitive ( boolean $caseSensitive ) |
A boolean flag to enable or disable case sensitive search for $text
criteria. |
|
comment ( string $comment ) |
Associates a comment to any expression taking a query predicate. |
|
count ( ) |
Change the query type to count. |
|
currentDate ( string $type = 'date' ) |
Sets the value of the current field to the current date, either as a date or a timestamp. |
|
debug ( string $name = null ) : mixed |
Return an array of information about the Builder state for debugging. |
|
diacriticSensitive ( boolean $diacriticSensitive ) |
A boolean flag to enable or disable diacritic sensitive search for $text
criteria. |
|
distanceMultiplier ( float $distanceMultiplier ) |
Set the "distanceMultiplier" option for a geoNear command query. |
|
distinct ( string $field ) |
Change the query type to a distinct command. |
|
eagerCursor ( boolean $bool = true ) |
Set whether the query should return its result as an EagerCursor. |
|
elemMatch ( array | Expr $expression ) |
Specify $elemMatch criteria for the current field. |
|
equals ( mixed $value ) |
Specify an equality match for the current field. |
|
exclude ( $fieldName = null ) |
Set one or more fields to be excluded from the query projection. |
|
exists ( boolean $bool ) |
Specify $exists criteria for the current field. |
|
expr ( ) : Expr |
Create a new Expr instance that can be used to build partial expressions
for other operator methods. |
|
field ( string $field ) |
Set the current field for building the expression. |
|
finalize ( string | MongoCode $finalize ) |
Set the "finalize" option for a mapReduce or group command. |
|
find ( ) |
Change the query type to find. |
|
findAndRemove ( ) |
Change the query type to findAndRemove (uses the findAndModify command). |
|
findAndUpdate ( ) |
Change the query type to findAndUpdate (uses the findAndModify command). |
|
geoIntersects ( array | GeoJson\Geometry\Geometry $geometry ) |
Add $geoIntersects criteria with a GeoJSON geometry to the query. |
|
geoNear ( float | array | GeoJson\Geometry\Point $x, float $y = null ) |
Change the query type to a geoNear command. |
|
geoWithin ( array | GeoJson\Geometry\Geometry $geometry ) |
Add $geoWithin criteria with a GeoJSON geometry to the query. |
|
geoWithinBox ( float $x1, float $y1, float $x2, float $y2 ) |
Add $geoWithin criteria with a $box shape to the query. |
|
geoWithinCenter ( float $x, float $y, float $radius ) |
Add $geoWithin criteria with a $center shape to the query. |
|
geoWithinCenterSphere ( float $x, float $y, float $radius ) |
Add $geoWithin criteria with a $centerSphere shape to the query. |
|
geoWithinPolygon ( ) |
Add $geoWithin criteria with a $polygon shape to the query. |
|
getNewObj ( ) : array |
Return the expression's "new object". |
|
getQuery ( array $options = [] ) : Query |
Create a new Query instance from the Builder state. |
|
getQueryArray ( ) : array |
Return the expression's query criteria. |
|
getType ( ) : integer |
Get the type of this query. |
|
group ( mixed $keys, array $initial, string | MongoCode $reduce = null, array $options = [] ) |
Change the query type to a group command. |
|
gt ( mixed $value ) |
Specify $gt criteria for the current field. |
|
gte ( mixed $value ) |
Specify $gte criteria for the current field. |
|
hint ( array | string $index ) |
Set the index hint for the query. |
|
immortal ( boolean $bool = true ) |
Set the immortal cursor flag. |
|
in ( array $values ) |
Specify $in criteria for the current field. |
|
inc ( float | integer $value ) |
Increment the current field. |
|
insert ( ) |
Change the query type to insert. |
|
language ( string $language ) |
Set the $language option for $text criteria. |
|
limit ( integer $limit ) |
Set the limit for the query. |
|
lt ( mixed $value ) |
Specify $lt criteria for the current field. |
|
lte ( mixed $value ) |
Specify $lte criteria for the current field. |
|
map ( string | MongoCode $map ) |
Change the query type to a mapReduce command. |
|
mapReduce ( string | MongoCode $map, string | MongoCode $reduce, array | string $out = ['inline' => true], array $options = [] ) |
Change the query type to a mapReduce command. |
|
mapReduceOptions ( array $options ) |
Set additional options for a mapReduce command. |
|
max ( mixed $value ) |
Updates the value of the field to a specified value if the specified value is greater than the current value of the field. |
|
maxDistance ( float $maxDistance ) |
Set the "maxDistance" option for a geoNear command query or add
$maxDistance criteria to the query. |
|
maxTimeMS ( integer $ms ) |
Specifies a cumulative time limit in milliseconds for processing operations on a cursor. |
|
min ( mixed $value ) |
Updates the value of the field to a specified value if the specified value is less than the current value of the field. |
|
minDistance ( float $minDistance ) |
Set the "minDistance" option for a geoNear command query or add
$minDistance criteria to the query. |
|
mod ( float | integer $divisor, float | integer $remainder ) |
Specify $mod criteria for the current field. |
|
mul ( float | integer $value ) |
Multiply the current field. |
|
multiple ( boolean $bool = true ) |
Set the "multiple" option for an update query. |
|
near ( float | array | GeoJson\Geometry\Point $x, float $y = null ) |
Add $near criteria to the query. |
|
nearSphere ( float | array | GeoJson\Geometry\Point $x, float $y = null ) |
Add $nearSphere criteria to the query. |
|
not ( array | Expr $expression ) |
Negates an expression for the current field. |
|
notEqual ( mixed $value ) |
Specify $ne criteria for the current field. |
|
notIn ( array $values ) |
Specify $nin criteria for the current field. |
|
out ( array | string $out ) |
Set the "out" option for a mapReduce command. |
|
popFirst ( ) |
Remove the first element from the current array field. |
|
popLast ( ) |
Remove the last element from the current array field. |
|
pull ( mixed | Expr $valueOrExpression ) |
Remove all elements matching the given value or expression from the
current array field. |
|
pullAll ( array $values ) |
Remove all elements matching any of the given values from the current
array field. |
|
push ( mixed | Expr $valueOrExpression ) |
Append one or more values to the current array field. |
|
pushAll ( array $values ) |
Append multiple values to the current array field. |
|
range ( mixed $start, mixed $end ) |
Specify $gte and $lt criteria for the current field. |
|
reduce ( string | MongoCode $reduce ) |
Set the "reduce" option for a mapReduce or group command. |
|
remove ( ) |
Change the query type to remove. |
|
rename ( string $name ) |
Rename the current field. |
|
returnNew ( boolean $bool = true ) |
Set the "new" option for a findAndUpdate command. |
|
select ( $fieldName = null ) |
Set one or more fields to be included in the query projection. |
|
selectElemMatch ( string $fieldName, array | Expr $expression ) |
Select only matching embedded documents in an array field for the query
projection. |
|
selectMeta ( string $fieldName, string $metaDataKeyword ) |
Select a metadata field for the query projection. |
|
selectSlice ( string $fieldName, integer $countOrSkip, integer $limit = null ) |
Select a slice of an array field for the query projection. |
|
set ( mixed $value, boolean $atomic = true ) |
Set the current field to a value. |
|
setNewObj ( array $newObj ) |
Set the expression's "new object". |
|
setOnInsert ( mixed $value ) |
Set the current field to the value if the document is inserted in an
upsert operation. |
|
setQueryArray ( array $query ) |
Set the expression's query criteria. |
|
setReadPreference ( $readPreference, array $tags = null ) |
Set the read preference for the query. |
|
size ( integer $size ) |
Specify $size criteria for the current field. |
|
skip ( integer $skip ) |
Set the skip for the query cursor. |
|
slaveOkay ( boolean $bool = true ) |
Set whether the query may be directed to replica set secondaries. |
|
snapshot ( boolean $bool = true ) |
Set the snapshot cursor flag. |
|
sort ( array | string $fieldName, integer | string $order = 1 ) |
Set one or more field/order pairs on which to sort the query. |
|
sortMeta ( string $fieldName, string $metaDataKeyword ) |
Specify a projected metadata field on which to sort the query. |
|
spherical ( boolean $spherical = true ) |
Set the "spherical" option for a geoNear command query. |
|
text ( string $search ) |
Specify $text criteria for the current field. |
|
type ( integer $type ) |
Specify $type criteria for the current field. |
|
unsetField ( ) |
Unset the current field. |
|
update ( ) |
Change the query type to update. |
|
updateMany ( ) |
Change the query type to update multiple documents |
|
updateOne ( ) |
Change the query type to update a single document |
|
upsert ( boolean $bool = true ) |
Set the "upsert" option for an update or findAndUpdate query. |
|
where ( string | MongoCode $javascript ) |
Specify a JavaScript expression to use for matching documents. |
|
withinBox ( float $x1, float $y1, float $x2, float $y2 ) |
Add $within criteria with a $box shape to the query. |
|
withinCenter ( float $x, float $y, float $radius ) |
Add $within criteria with a $center shape to the query. |
|
withinCenterSphere ( float $x, float $y, float $radius ) |
Add $within criteria with a $centerSphere shape to the query. |
|
withinPolygon ( ) |
Add $within criteria with a $polygon shape to the query. |
|