Commit ace78f65 authored by Jeremy Mikola's avatar Jeremy Mikola

Update expected output for findAndModify examples

parent 2d2f443d
......@@ -75,11 +75,13 @@ The following example finds and deletes the document with ``restaurant_id`` of
The output would then resemble::
object(stdClass)#14 (4) {
object(MongoDB\Model\BSONDocument)#17 (1) {
["storage":"ArrayObject":private]=>
array(4) {
["_id"]=>
object(MongoDB\BSON\ObjectID)#11 (1) {
["oid"]=>
string(24) "576023c6b02fa9281da3fad9"
string(24) "594d5ef280a846852a4b3f70"
}
["borough"]=>
string(9) "Manhattan"
......@@ -88,6 +90,7 @@ The output would then resemble::
["restaurant_id"]=>
string(8) "40375376"
}
}
See Also
--------
......
......@@ -117,24 +117,30 @@ The following operation replaces the document with ``restaurant_id`` of
The output would then resemble::
object(stdClass)#14 (6) {
object(MongoDB\Model\BSONDocument)#18 (1) {
["storage":"ArrayObject":private]=>
array(6) {
["_id"]=>
object(MongoDB\BSON\ObjectID)#11 (1) {
["oid"]=>
string(24) "576023c7b02fa9281da4139e"
string(24) "594d5ef380a846852a4b5837"
}
["borough"]=>
["Borough"]=>
string(13) "Staten Island"
["cuisine"]=>
string(7) "Italian"
["grades"]=>
object(MongoDB\Model\BSONArray)#17 (1) {
["storage":"ArrayObject":private]=>
array(0) {
}
}
["name"]=>
string(22) "Staten Island Pastaria"
["restaurant_id"]=>
string(9) "999999999"
}
}
See Also
--------
......
......@@ -76,29 +76,38 @@ setting its building number to ``"761"``:
The output would then resemble::
object(stdClass)#16 (2) {
object(MongoDB\Model\BSONDocument)#20 (1) {
["storage":"ArrayObject":private]=>
array(2) {
["_id"]=>
object(MongoDB\BSON\ObjectID)#10 (1) {
object(MongoDB\BSON\ObjectID)#12 (1) {
["oid"]=>
string(24) "5813a08d29032c6e72d566a7"
string(24) "594d5ef280a846852a4b3dee"
}
["address"]=>
object(stdClass)#15 (4) {
object(MongoDB\Model\BSONDocument)#19 (1) {
["storage":"ArrayObject":private]=>
array(4) {
["building"]=>
string(3) "761"
["coord"]=>
object(MongoDB\Model\BSONArray)#18 (1) {
["storage":"ArrayObject":private]=>
array(2) {
[0]=>
float(-73.9925306)
[1]=>
float(40.7309346)
}
}
["street"]=>
string(8) "Broadway"
["zipcode"]=>
string(5) "10003"
}
}
}
}
See Also
--------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment