Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

Releases: doctrine/mongodb

1.6.4

Choose a tag to compare

@alcaeus alcaeus released this 11 Jul 05:40
1.6.4
46b6316

1.6.4

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

bug

1.6.3

Choose a tag to compare

@alcaeus alcaeus released this 20 Jul 05:13
859dad9

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

Choose a tag to compare

@alcaeus alcaeus released this 30 Apr 18:06
517560a

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

Choose a tag to compare

@alcaeus alcaeus released this 09 Oct 06:16

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

Choose a tag to compare

@alcaeus alcaeus released this 09 Aug 16:53

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

Choose a tag to compare

@alcaeus alcaeus released this 30 Jun 11:25

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

Choose a tag to compare

@alcaeus alcaeus released this 22 Nov 19:09

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

Choose a tag to compare

@alcaeus alcaeus released this 20 Mar 19:39

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

1.2.2

Choose a tag to compare

@alcaeus alcaeus released this 20 Mar 19:38

Pull requests completed for the 1.2.2 release:

  • #250: Fix wrong syntax for dateToString operator

1.2.1

Choose a tag to compare

@alcaeus alcaeus released this 24 Nov 14:31

Pull requests completed for the 1.2.1 release:

  • #229: Fix EagerCursor::skip() method calling limit method of base cursor instead of skip method
  • #231: Remove count method declaration in CursorInterface to fix fatal error for PHP 5.3
  • #237: Fix bug where timeout is set to 1 ms