- 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.
-
The
update()andmultiple()methods have been deprecated. UseupdateOneorupdateManyinstead. -
The
addAnd(),addNor()andaddOr()methods now accept multiple parameters. Before:$builder ->addAnd($someExpression) ->addAnd($otherExpression);
After:
$builder->addAnd($someExpression, $otherExpression);
- The
addAnd()andaddOr()methods now accept multiple parameters.
- Passing driver options to the connection class is now supported. You can pass
a stream context as shown in the PHP documentation:
$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]);