MongoDB\Driver\CursorInterface::setTypeMap
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization
Description
$typemap
): voidSets 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