@@ -83,7 +83,9 @@ between [updating specific fields][update] and
83
83
[ MongoDB\Collection] [ collection ] does not yet have a helper method for the
84
84
[ group] [ group ] command; however, that is planned in [ PHPLIB-177] [ jira-group ] .
85
85
The following example demonstrates how to execute a group command using
86
- [ Database::command()] ( classes/database.md#command ) :
86
+ [ Database::command()] [ command ] :
87
+
88
+ [ command ] : classes/database.md#command
87
89
88
90
``` php
89
91
<?php
@@ -108,7 +110,7 @@ $resultDocument = $cursor->toArray()[0];
108
110
[ MongoDB\Collection] [ collection ] does not yet have a helper method for the
109
111
[ mapReduce] [ mapReduce ] command; however, that is planned in
110
112
[ PHPLIB-53] [ jira-mapreduce ] . The following example demonstrates how to execute a
111
- mapReduce command using [ Database::command()] ( classes/database.md# command) :
113
+ mapReduce command using [ Database::command()] [ command ] :
112
114
113
115
``` php
114
116
<?php
@@ -139,8 +141,11 @@ with [DBRef][dbref] objects; however, that is planned in
139
141
140
142
[ MongoCollection::save()] [ save ] , which was syntactic sugar for an insert or
141
143
upsert operation, has been removed in favor of explicitly using
142
- [ insertOne()] ( classes/collection.md#insertone ) or
143
- [ replaceOne()] ( classes/collection.md#replaceone ) (with the "upsert" option).
144
+ [ insertOne()] [ insertone ] or [ replaceOne()] [ replaceone ] (with the "upsert"
145
+ option).
146
+
147
+ [ insertone ] : classes/collection.md#insertone
148
+ [ replaceone ] : classes/collection.md#replaceone
144
149
145
150
![ save() flowchart] ( img/save-flowchart.png )
146
151
@@ -155,8 +160,9 @@ dangerous [full-document replacements][replace].
155
160
### MongoWriteBatch
156
161
157
162
The legacy driver's [ MongoWriteBatch] [ batch ] classes have been replaced with a
158
- general-purpose [ bulkWrite()] ( classes/collection.md# bulkwrite) method. Whereas
159
- the legacy driver only allowed bulk operations of the same time, the new method
160
- allows operations to be mixed (e.g. inserts, updates, and deletes).
163
+ general-purpose [ bulkWrite()] [ bulkwrite ] method. Whereas the legacy driver only
164
+ allowed bulk operations of the same time, the new method allows operations to be
165
+ mixed (e.g. inserts, updates, and deletes).
161
166
162
167
[ batch ] : http://php.net/manual/en/class.mongowritebatch.php
168
+ [ bulkwrite ] : classes/collection.md#bulkwrite
0 commit comments