Php/docs/mongodb-driver-cursorinterface.settypemap
From Get docs
MongoDB\Driver\CursorInterface::setTypeMap
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization
Description
abstract public MongoDB\Driver\CursorInterface::setTypeMap
( array $typemap
) : void
Sets the type map configuration to use when unserializing the BSON results into PHP values.
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