{ "_id" : ObjectId("58b6b5ae4da44a66493520a4"), "__pclass" : BinData(128,"QWN0aXZpdHk="), "type" : "activity" }
{ "_id" : ObjectId("58b6ba934da44a66985ef402"), "__pclass" : BinData(128,"QWN0aXZpdHk="), "type" : "activity" }
DEBUG - 2017-03-01 15:43:20 --> ======================in Activity::bsonUnserialize======================
DEBUG - 2017-03-01 15:43:20 --> data: array (
'_id' =>
MongoDB\BSON\ObjectID::__set_state(array(
'oid' => '58b6b5ae4da44a66493520a4',
)),
'__pclass' =>
MongoDB\BSON\Binary::__set_state(array(
'data' => 'Activity',
'type' => 128,
)),
'type' => 'activity',
)
DEBUG - 2017-03-01 15:43:20 --> ======================in Activity::bsonUnserialize======================
DEBUG - 2017-03-01 15:43:20 --> data: array (
'_id' =>
MongoDB\BSON\ObjectID::__set_state(array(
'oid' => '58b6b5ae4da44a66493520a4',
)),
'__pclass' =>
MongoDB\BSON\Binary::__set_state(array(
'data' => 'Activity',
'type' => 128,
)),
'type' => 'activity',
)
DEBUG - 2017-03-01 15:43:20 --> ======================in Activity::bsonUnserialize======================
DEBUG - 2017-03-01 15:43:20 --> data: array (
'_id' =>
MongoDB\BSON\ObjectID::__set_state(array(
'oid' => '58b6ba934da44a66985ef402',
)),
'__pclass' =>
MongoDB\BSON\Binary::__set_state(array(
'data' => 'Activity',
'type' => 128,
)),
'type' => 'activity',
)
DEBUG - 2017-03-01 12:27:30 --> ======================in Activity::bsonUnserialize======================
DEBUG - 2017-03-01 12:27:30 --> data: array (
'_id' =>
MongoDB\BSON\ObjectID::__set_state(array(
'oid' => '58b6b5ae4da44a66493520a4',
)),
'__pclass' =>
MongoDB\BSON\Binary::__set_state(array(
'data' => 'Activity',
'type' => 128,
)),
'type' => 'activity',
)
DEBUG - 2017-03-01 12:27:30 --> ======================in Activity::bsonUnserialize======================
DEBUG - 2017-03-01 12:27:30 --> data: array (
'_id' =>
MongoDB\BSON\ObjectID::__set_state(array(
'oid' => '58b6b5ae4da44a66493520a4',
)),
'__pclass' =>
MongoDB\BSON\Binary::__set_state(array(
'data' => 'Activity',
'type' => 128,
)),
'type' => 'activity',
)
DEBUG - 2017-03-01 12:27:30 --> ======================in Activity::bsonUnserialize======================
DEBUG - 2017-03-01 12:27:30 --> data: array (
'_id' =>
MongoDB\BSON\ObjectID::__set_state(array(
'oid' => '58b6ba934da44a66985ef402',
)),
'__pclass' =>
MongoDB\BSON\Binary::__set_state(array(
'data' => 'Activity',
'type' => 128,
)),
'type' => 'activity',
)
HiWhen I call the method find (with no mapType), or when getting array from cursor when setting mapType, the bsonUnserialize method of the class contained in the collection is being called twice, but oddly enough only on the first element.
Thanks for bringing this to our attention. I've opened PHPC-924 to track the bug. Please follow that issue for updates.