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

Commit

Permalink
Add changelog for 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Nov 21, 2016
1 parent dfafc9b commit b21398f
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG-1.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CHANGELOG for 1.4.x
===================

This changelog references the relevant changes (bug and security fixes) done
in 1.4.x patch versions.

1.4.0 (2016-11-22)
------------------

* [#244](https://github.com/doctrine/mongodb/pull/244): Use short array syntax
* [#263](https://github.com/doctrine/mongodb/pull/263): Fix wrong parameter in count method
* [#264](https://github.com/doctrine/mongodb/pull/264): Drop support for PHP 5.5
* [#273](https://github.com/doctrine/mongodb/pull/273): Remove unused use statements
* [#274](https://github.com/doctrine/mongodb/pull/274): Loggable GridFS collection
* [#275](https://github.com/doctrine/mongodb/pull/275): Deprecate update() and multiple() methods in query builder
* [#246](https://github.com/doctrine/mongodb/pull/246): Open up aggregation builder API for use in ODM
* [#278](https://github.com/doctrine/mongodb/pull/278): Run travis tests against MongoDB 3.2 and 2.6
* [#276](https://github.com/doctrine/mongodb/pull/276): Support passing driver options to connection class
* [#277](https://github.com/doctrine/mongodb/pull/277): Pass query options when running count command
* [#280](https://github.com/doctrine/mongodb/pull/280): Use argument unpacking insteda of call_user_func
* [#279](https://github.com/doctrine/mongodb/pull/279): Allow passing multiple arguments to add* methods
49 changes: 49 additions & 0 deletions UPGRADE-1.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Upgrade from 1.3 to 1.4
=======================

PHP version support
-------------------

* Support for PHP 5.5 has been dropped as it has reached its end of life.
* PHP 7 and PHP 7.1 are supported using [mongo-php-adapter](https://github.com/alcaeus/mongo-php-adapter).

Query builder
-------------

* The `update()` and `multiple()` methods have been deprecated. Use `updateOne`
or `updateMany` instead.
* The `addAnd()`, `addNor()` and `addOr()` methods now accept multiple parameters.
Before:
```php
$builder
->addAnd($someExpression)
->addAnd($otherExpression);
```

After:
```php
$builder->addAnd($someExpression, $otherExpression);
```

Aggregation builder
-------------------

* The `addAnd()` and `addOr()` methods now accept multiple parameters.

Connection
----------

* Passing driver options to the connection class is now supported. You can pass
a stream context as shown in the PHP documentation:
```php
$context = stream_context_create([
'mongodb' => [
'log_cmd_insert' => function () {
// Logic goes here...
}
],
'ssl' => [
'allow_self_signed' => false,
]
]);
$connection = new \Doctrine\MongoDB\Connection(null, [], null, null, ['context' => $context]);

0 comments on commit b21398f

Please sign in to comment.