This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); |