-
Type: New Feature
-
Resolution: Done
-
Priority: Blocker - P1
-
Affects Version/s: 0.1.0
-
Component/s: None
-
None
In the interest of usability, we should use type maps to ensure that embedded documents are converted to an object implementing ArrayAccess (e.g. ArrayObject) instead of stdClass objects. This would make a fine default for users, although we should make it easy for them to specify a typeMap at the Client level and have it be inherited for Database and Collection operations.
- is depended on by
-
PHPLIB-163 Implement __set_state() for BSON array and document classes
- Closed
- is related to
-
PHPC-319 Top level documents should be deserialized as stdClass by default
- Closed
-
PHPC-344 Allow non-root Serializable to encode as BSON array
- Closed
-
PHPC-314 Implement type map syntax for documents within field paths
- Closed
-
PHPC-343 Allow bsonSerialize() to return a stdClass
- Closed
- related to
-
PHPC-456 Document caveats of serializing BSON document to arrays with type maps
- Closed
-
PHPLIB-138 Add global typemap configuration
- Closed
- links to