Pull requests completed for the 1.2.0 release:
- #171: Implement
$minDistance
query operator and geoNear option- Adds
minDistance()
method to query builder
- Adds
- #183: Rewrite
Collection::update()
"multi" option to "multiple" - #184: Query builder support for $text operator in MongoDB 2.6
- Adds
language()
,text()
,selectMeta()
, andsortMeta()
methods to query builder
- Adds
- #186: Fixed
Connection::convertWriteTimeout()
docs - #192: Support
$meta
expressions inCursor::sort()
- This is typically used for sorting by text search scores
- #197: Support aggregation command cursors and client options
- Introduces a CommandCursor class, which decorates a MongoCommandCursor
- Command cursors require driver 1.5+
- Socket timeouts for command cursors require driver 1.6+
- #201: Fix issue when an operator follows
equals()
- #203: Ensure Query projection option is renamed for findAndModify
- #205: Don't pass empty arrays to array_combine()
- #209: Add a common cursor interface
- The Cursor and EagerCursor classes implement this interface
- #212: Query builder support for new update operators in MongoDB 2.6
- Adds
bitAnd()
,bitOr()
,bitXor()
,currentDate()
,max()
,min()
, andmul()
methods to query builder
- Adds
- #213: Add aggregation builder
- The builder may be created with
Collection::createAggregationBuilder()
- Top-level builder methods correspond to pipeline operators
- The builder may be created with
- #214: Removes parameter type hint from
Builder::geoWithin()
- Now accepts an array or
GeoJson\Geometry\Geometry
instance
- Now accepts an array or
- #215: Add test environment preferring lowest package dependencies
- #222: Add support for
MongoCollection::parallelCollectionScan()
- #223: Support
$useKeys
option when EagerCursor converts to an array - #224: Support client and socket timeout options in
Collection::count()
Collection::count()
now supports an options array as its second argument ($limit
integer is still supported)- Socket timeout (i.e.
socketTimeoutMS
) may be specified alongside command options
- #225: Include all cursor methods in cursor interface
- Expands the common CursorInterface to support all methods in Cursor and EagerCursor
- Allows ODM to be more agnostic when decorating a Cursor or EagerCursor
- #226: Implement getter for cursor
useIdentifierKeys
option