Re: http://10gen-labs.github.io/mongo-php-driver-prototype/ods/
I believe the embedded addresses and friends should be objects instead of arrays in the following example:
{
"_id" : ObjectId("54c9664fbd21b9416f2e0501"),
"__" : BinData(128,"UGVyc29u"),
"name" : "Hannes",
"age" : 31,
"address" : [
[
BinData(128,"QWRkcmVzcw=="),
94086,
"USA"
],
[
BinData(128,"QWRkcmVzcw=="),
200,
"Iceland"
]
],
"friends" : [
[
BinData(128,"UGVyc29u"),
ObjectId("54c9664fbd21b9416f2e0502"),
"Jeremy",
21,
[
[
BinData(128,"QWRkcmVzcw=="),
48169,
"USA"
]
],
{
}
]
]
}
- is related to
-
PHPC-209 Do not allow BSON arrays to be hydrated as PHP classes
-
- Closed
-