Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
2c98016f
Commit
2c98016f
authored
Mar 30, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use reference-style links in Upgrade Guide
parent
9590203b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
upgrade-guide.md
docs/upgrade-guide.md
+13
-7
No files found.
docs/upgrade-guide.md
View file @
2c98016f
...
...
@@ -83,7 +83,9 @@ between [updating specific fields][update] and
[
MongoDB\Collection
][
collection
]
does not yet have a helper method for the
[
group
][
group
]
command; however, that is planned in
[
PHPLIB-177
][
jira-group
]
.
The following example demonstrates how to execute a group command using
[
Database::command()
](
classes/database.md#command
)
:
[
Database::command()][command
]:
[command]:
classes/database.md#command
```
php
<?php
...
...
@@ -108,7 +110,7 @@ $resultDocument = $cursor->toArray()[0];
[
MongoDB\Collection
][
collection
]
does not yet have a helper method for the
[
mapReduce
][
mapReduce
]
command; however, that is planned in
[
PHPLIB-53
][
jira-mapreduce
]
. The following example demonstrates how to execute a
mapReduce command using
[
Database::command()
]
(
classes/database.md#command
)
:
mapReduce command using
[
Database::command()
]
[
command
]
:
```
php
<?php
...
...
@@ -139,8 +141,11 @@ with [DBRef][dbref] objects; however, that is planned in
[
MongoCollection::save()
][
save
]
, which was syntactic sugar for an insert or
upsert operation, has been removed in favor of explicitly using
[
insertOne()
](
classes/collection.md#insertone
)
or
[
replaceOne()
](
classes/collection.md#replaceone
)
(
with
the "upsert" option).
[
insertOne()
][
insertone
]
or
[
replaceOne()
][
replaceone
]
(with the "upsert"
option).
[
insertone
]:
classes/collection.md#insertone
[
replaceone
]:
classes/collection.md#replaceone

...
...
@@ -155,8 +160,9 @@ dangerous [full-document replacements][replace].
### MongoWriteBatch
The legacy driver's
[
MongoWriteBatch
][
batch
]
classes have been replaced with a
general-purpose
[
bulkWrite()
]
(
classes/collection.md#bulkwrite
)
method. Whereas
the legacy driver only allowed bulk operations of the same time, the new method
allows operations to be
mixed (e.g. inserts, updates, and deletes).
general-purpose
[
bulkWrite()
]
[
bulkwrite
]
method. Whereas the legacy driver only
allowed bulk operations of the same time, the new method allows operations to be
mixed (e.g. inserts, updates, and deletes).
[
batch
]:
http://php.net/manual/en/class.mongowritebatch.php
[
bulkwrite
]:
classes/collection.md#bulkwrite
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment