diff --git a/reference/mongodb/architecture.xml b/reference/mongodb/architecture.xml index 44d79a2604..1d5766ffa8 100644 --- a/reference/mongodb/architecture.xml +++ b/reference/mongodb/architecture.xml @@ -557,8 +557,18 @@ class UpperClass implements MongoDB\BSON\Persistable { - Each of those three data types can be mapped against different PHP types. - The possible mapping values are: + Besides the three collective types, it is also possible to configure + specific fields in your document to map to the data types mentioned below. + As an example, this fieldPath feature allows you to + map each "city" element of a field that stores + addresses to the City class by setting: + ['addresses.$.city' => 'MyProject\City'] in the typemap. + + + + Each of those three data types, as well as the field specific mappings, + can be mapped against different PHP types. The possible mapping values + are: @@ -691,8 +701,9 @@ class UpperClass implements MongoDB\BSON\Persistable { MongoDB\Driver\Cursor object, or the $typeMap argument of MongoDB\BSON\toPHP. Each of the three - classes (root, document and - array) can be individually set. + classes (root, document, and + array) can be individually set, in addition to the + field specific types.