Releases: doctrine/mongodb
1.6.4
1.6.3
We are happy to announce the immediate availability of Doctrine MongoDB Abstraction Layer 1.6.3.
Bug fixes in this release
This release fixes a bug with the popFirst
and popLast
methods in Expr
which causes the wrong elements to be removed.
A full list of issues and pull requests included in this release may be found in the 1.6.3 milestone.
PHP version support
This library requires PHP 5.6 or newer. If you are using PHP 7.0 or newer, you can use this library by adding a polyfill for ext-mongo
, like mongo-php-adapter.
1.6.2
We are happy to announce the immediate availability of Doctrine MongoDB Abstraction Layer 1.6.2.
Bug fixes in this release
This release fixes a bug when uploading GridFS files when the read preference on the collection has been set to secondary
or secondaryPreferred
.
A full list of issues and pull requests included in this release may be found in the 1.6.2 milestone.
PHP version support
This library requires PHP 5.6 or newer. If you are using PHP 7.0 or newer, you can use this library by adding a polyfill for ext-mongo
, like mongo-php-adapter.
1.6.1
We are happy to announce the immediate availability of Doctrine MongoDB Abstraction Layer 1.6.1.
Bug fixes in this release
This release fixes a bug with empty $match
stages in aggregation builder and fixes the generated pipeline stage for $bucketAuto
aggregation pipeline stages.
A full list of issues and pull requests included in this release may be found in the 1.6.1 milestone.
PHP version support
This library requires PHP 5.6 or newer. If you are using PHP 7.0 or newer, you can use this library by adding a polyfill for ext-mongo
, like mongo-php-adapter.
1.6.0
We are happy to announce the immediate availability of Doctrine MongoDB Abstraction Layer 1.6.0.
Bug fixes in this release
This release fixes a BC break introduced in 1.5.0 which prevented correct conversion of expression object within aggregation builder stages.
A full list of issues and pull requests included in this release may be found in the 1.6.0 milestone.
PHP version support
This library requires PHP 5.6 or newer. If you are using PHP 7.0 or newer, you can use this library by adding a polyfill for ext-mongo
, like mongo-php-adapter.
1.5.0
We are happy to announce the immediate availability of Doctrine MongoDB Abstraction Layer 1.5.0.
Release highlights
Aggregation builder
This release adds support for aggregation pipeline changes introduced in MongoDB. Details can be found in the changelog.
Bug fixes in this release
Notable fixes may be found in the changelog. A full list of issues and pull requests included in this release may be found in the 1.5.0 milestone.
PHP version support
This library requires PHP 5.6 or newer. If you are using PHP 7.0 or 7.1, you can use this library by adding a polyfill for ext-mongo
, like mongo-php-adapter.
1.4.0
We are happy to announce the immediate availability of Doctrine MongoDB Abstraction Layer 1.4.0.
Release highlights
Passing context options to the driver
With this release it's possible to pass driver options to the connection class, which will then be passed on to the MongoDB driver. For example, to pass a stream context with SSL context options, you could use the following code snippet:
$context = stream_context_create([
'ssl' => [
'allow_self_signed' => false,
]
]);
$connection = new \Doctrine\MongoDB\Connection(null, [], null, null, ['context' => $context]);
Passing multiple expressions to logical operators
The addAnd
, addNor
and addOr
methods in the query and aggregation builders now take multiple expression objects. Instead of having to call the method repeatedly, you may call it once with multiple arguments:
// Before
$builder
->addAnd($someExpression)
->addAnd($otherExpression);
// After
$builder->addAnd($someExpression, $otherExpression);
Deprecations
The update
and multiple
methods in the query have been deprecated in favor of updateOne
and updateMany
. These deprecations help people using ODM prepare for the next version of ODM which will utilize the new MongoDB library API.
Bug fixes in this release
Notable fixes may be found in the changelog. A full list of issues and pull requests included in this release may be found in the 1.4.0 milestone.
PHP version support
With this release, we have dropped support for PHP 5.5. Users using PHP 5.5 or older are encouraged to upgrade to a newer PHP version. If you are using PHP 7.0 or 7.1, you can use this library by adding a polyfill for ext-mongo
, like mongo-php-adapter.
1.3.0
This release drops compatibility with PHP 5.3 and PHP 5.4 and requires ext-mongo
>= 1.5. Older driver versions are no longer supported.
Pull requests completed for the 1.3.0 release:
- #227: Specify time limit operation on a mongodb cursor
- #233: Allow Event Listeners the ability to modify context information in the event
preFindAndRemove, preFindAndUpdate, preFindOne, preGetDBRef, preGroup, preInsert, preMapReduce, preNear, preRemove, postRemove, preSave, preUpdate, postUpdate - #234: Add support for
$comment
operator - #235: Add support for
$setOnInsert
operator - #238: Bump PHP and mongo version requirements
- #240: Add new MongoDB 3.2 features to aggregation builder
- #241: Add query operators introduced with MongoDB 3.2
query builder - #251: Corrected fluent interface docblocks
- #255: Add expr method to aggregation expression object
- #256: Allow using operators in group stages