-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
When BSON encoding a class that implements the interface outlined in PHP-1069, the class name should be injected into the document in a reserved field (e.g. _phpClass). When decoding a BSON document, we should check for this field and convert the document to a class instance instead of a PHP array or stdClass instance.