MongoDB\Driver\CursorInterface::setTypeMap

(mongodb >=1.6.0)

MongoDB\Driver\CursorInterface::setTypeMapSets a type map to use for BSON unserialization

说明

abstractpublicMongoDB\Driver\CursorInterface::setTypeMap(array$typemap): void

Sets the type map configuration to use when unserializing the BSON results into PHP values.

参数

typeMap (array)

Type map configuration.

返回值

没有返回值。

错误/异常

参见

To Top