MongoDB\Driver\CursorInterface::setTypeMap
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization
Description
Sets the type map configuration to use when unserializing the BSON results into PHP values.
Parameters
typeMap(array)
Return Values
No value is returned.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\Driver\Cursor::setTypeMap() - Sets a type map to use for BSON unserialization
- Persisting Data
↑ and ↓ to navigate • Enter to select • Esc to close • / to open