Skip to content

Commit 42d5f61

Browse files
Merge v1.19 into master (#1341)
2 parents 2fc22f4 + 59c1583 commit 42d5f61

23 files changed

+71
-91
lines changed

docs/faq.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ The following are all examples of
125125

126126
These errors typically manifest as a
127127
:php:`MongoDB\Driver\Exception\ConnectionTimeoutException <mongodb-driver-exception-connectiontimeoutexception>`
128-
exception from the driver. The actual exception messages originate from
129-
libmongoc, which is the underlying library used by the PHP driver. Since these
130-
messages can take many forms, it's helpful to break down the structure of the
131-
message so you can better diagnose errors in your application.
128+
exception from the extension. The actual exception messages originate from
129+
libmongoc, which is the underlying system library used by the extension. Since
130+
these messages can take many forms, it's helpful to break down the structure of
131+
the message so you can better diagnose errors in your application.
132132

133133
Messages will typically start with "No suitable servers found". The next part of
134-
the message indicates *how* server selection failed. By default, the PHP driver
134+
the message indicates *how* server selection failed. By default, the extension
135135
avoids a server selection loop and instead makes a single attempt (according to
136-
the ``serverSelectionTryOnce`` connection string option). If the driver is
136+
the ``serverSelectionTryOnce`` connection string option). If the extension is
137137
configured to utilize a loop, a message like "serverSelectionTimeoutMS expired"
138138
will tell us that we exhausted its time limit.
139139

docs/includes/extracts-error.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ ref: error-driver-invalidargumentexception
1010
content: |
1111
:php:`MongoDB\Driver\Exception\InvalidArgumentException
1212
<mongodb-driver-exception-invalidargumentexception>` for errors related to the
13-
parsing of parameters or options at the driver level.
13+
parsing of parameters or options at the extension level.
1414
---
1515
ref: error-driver-runtimeexception
1616
content: |
1717
:php:`MongoDB\Driver\Exception\RuntimeException
18-
<mongodb-driver-exception-runtimeexception>` for other errors at the driver
18+
<mongodb-driver-exception-runtimeexception>` for other errors at the extension
1919
level (e.g. connection errors).
2020
---
2121
ref: error-badmethodcallexception-write-result

docs/includes/extracts-note.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ content: |
66
:php:`comparison <manual/en/types.comparisons.php>` and :php:`type juggling
77
<manual/en/language.types.type-juggling.php>` rules. When matching a special
88
BSON type the query criteria should use the respective :php:`BSON class
9-
<manual/en/book.bson.php>` in the driver (e.g. use
9+
<manual/en/book.bson.php>` in the extension (e.g. use
1010
:php:`MongoDB\BSON\ObjectId <class.mongodb-bson-objectid>` to match an
1111
:manual:`ObjectId </reference/object-id/>`).
1212
---

docs/index.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ MongoDB PHP Library
55
.. default-domain:: mongodb
66

77
The |php-library| provides a high-level abstraction around the lower-level
8-
`PHP driver <https://php.net/mongodb>`_, also known as the ``mongodb``
9-
extension.
8+
:php:`mongodb extension <mongodb>`.
109

1110
The ``mongodb`` extension provides a limited API to connect to the database and
1211
execute generic commands, queries, and write operations. In contrast, the

docs/reference/bson.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Classes
2828

2929
This class extends PHP's :php:`ArrayObject <arrayobject>` class. It also
3030
implements PHP's :php:`JsonSerializable <jsonserializable>` interface and the
31-
driver's :php:`MongoDB\BSON\Serializable <mongodb-bson-serializable>` and
31+
extension's :php:`MongoDB\BSON\Serializable <mongodb-bson-serializable>` and
3232
:php:`MongoDB\BSON\Unserializable <mongodb-bson-unserializable>`
3333
interfaces.
3434

@@ -41,7 +41,7 @@ Classes
4141

4242
This class extends PHP's :php:`ArrayObject <arrayobject>` class. It also
4343
implements PHP's :php:`JsonSerializable <jsonserializable>` interface and the
44-
driver's :php:`MongoDB\BSON\Serializable <mongodb-bson-serializable>` and
44+
extension's :php:`MongoDB\BSON\Serializable <mongodb-bson-serializable>` and
4545
:php:`MongoDB\BSON\Unserializable <mongodb-bson-unserializable>`
4646
interfaces.
4747

docs/reference/class/MongoDBClient.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Definition
1818
This class serves as an entry point for the |php-library|. It is the
1919
preferred class for connecting to a MongoDB server or cluster of servers and
2020
acts as a gateway for accessing individual databases and collections.
21-
:phpclass:`MongoDB\Client` is analogous to the driver's
21+
:phpclass:`MongoDB\Client` is analogous to the extension's
2222
:php:`MongoDB\Driver\Manager <mongodb-driver-manager>` class, which it
2323
`composes <https://en.wikipedia.org/wiki/Object_composition>`_.
2424

docs/reference/class/MongoDBCollection.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Definition
1818
Provides methods for common operations on collections and documents,
1919
including CRUD operations and index management.
2020

21-
You can construct collections directly using the driver's
21+
You can construct collections directly using the extension's
2222
:php:`MongoDB\Driver\Manager <class.mongodb-driver-manager>` class or
2323
select a collection from the library's :phpclass:`MongoDB\Client` or
2424
:phpclass:`MongoDB\Database` classes. A collection may also be cloned from
@@ -37,20 +37,6 @@ Definition
3737
Operations within the :phpclass:`MongoDB\Collection` class inherit the
3838
collection's options.
3939

40-
Type Map Limitations
41-
--------------------
42-
43-
The :manual:`aggregate </reference/command/aggregate>` (when not using a
44-
cursor), :manual:`distinct </reference/command/distinct>`, and
45-
:manual:`findAndModify </reference/command/findAndModify>` helpers do not
46-
support a ``typeMap`` option due to a driver limitation. The
47-
:phpmethod:`aggregate() <MongoDB\Collection::aggregate()>`,
48-
:phpmethod:`distinct() <MongoDB\Collection::distinct()>`,
49-
:phpmethod:`findOneAndReplace() <MongoDB\Collection::findOneAndReplace()>`,
50-
:phpmethod:`findOneAndUpdate() <MongoDB\Collection::findOneAndUpdate()>`, and
51-
:phpmethod:`findOneAndDelete() <MongoDB\Collection::findOneAndDelete()>`
52-
methods return BSON documents as ``stdClass`` objects and BSON arrays as arrays.
53-
5440
Methods
5541
-------
5642

docs/reference/class/MongoDBDatabase.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Definition
1818
Provides methods for common operations on a database, such as executing
1919
database commands and managing collections.
2020

21-
You can construct a database directly using the driver's
21+
You can construct a database directly using the extension's
2222
:php:`MongoDB\Driver\Manager <class.mongodb-driver-manager>` class or
2323
select a database from the library's :phpclass:`MongoDB\Client` class. A
2424
database may also be cloned from an existing :phpclass:`MongoDB\Database`

docs/reference/class/MongoDBGridFSBucket.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Definition
2222
provides an interface around these collections for working with the files as
2323
PHP :php:`Streams <stream>`.
2424

25-
You can construct a GridFS bucket using the driver's
25+
You can construct a GridFS bucket using the extension's
2626
:php:`Manager <class.mongodb-driver-manager>` class, or select a bucket from
2727
the library's :phpclass:`MongoDB\Database` class via the
2828
:phpmethod:`selectGridFSBucket() <MongoDB\Database::selectGridFSBucket()>`

docs/reference/exception-classes.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ MongoDB\\Exception\\InvalidArgumentException
5353
Thrown for errors related to the parsing of parameters or options within the
5454
library.
5555

56-
This class extends the driver's :php:`InvalidArgumentException
56+
This class extends the extension's :php:`InvalidArgumentException
5757
<mongodb-driver-exception-invalidargumentexception>` class and implements the
5858
library's :phpclass:`Exception <MongoDB\Exception\Exception>` interface.
5959

@@ -67,10 +67,9 @@ MongoDB\\Exception\\UnexpectedValueException
6767
This exception is thrown when a command response from the server is
6868
malformed or not what the library expected. This exception means that an
6969
assertion in some operation, which abstracts a database command, has failed.
70-
It may indicate a corrupted BSON response or bug in the server, driver, or
71-
library.
70+
It may indicate a corrupted BSON response or bug in the server or driver.
7271

73-
This class extends the driver's :php:`UnexpectedValueException
72+
This class extends the extension's :php:`UnexpectedValueException
7473
<mongodb-driver-exception-unexpectedvalueexception>` class and implements the
7574
library's :phpclass:`Exception <MongoDB\Exception\Exception>` interface.
7675

@@ -133,7 +132,7 @@ MongoDB\\Exception\\Exception
133132

134133
.. phpclass:: MongoDB\Exception\Exception
135134

136-
This interface extends the driver's :php:`Exception
135+
This interface extends the extension's :php:`Exception
137136
<mongodb-driver-exception-exception>` interface and is implemented by all
138137
exception classes within the library.
139138

@@ -144,6 +143,6 @@ MongoDB\\Exception\\RuntimeException
144143

145144
.. phpclass:: MongoDB\Exception\RuntimeException
146145

147-
This class extends the driver's :php:`RuntimeException
146+
This class extends the extension's :php:`RuntimeException
148147
<mongodb-driver-exception-runtimeexception>` class, which in turn extends
149148
PHP's :php:`RuntimeException <runtimeexception>` class.

0 commit comments

Comments
 (0)