MongoDB\Driver\CursorInterface::setTypeMap
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization
说明
Sets the type map configuration to use when unserializing the BSON results into PHP values.
参数
typeMap
(array)
返回值
没有返回值。
错误/异常
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
参见
- MongoDB\Driver\Cursor::setTypeMap() - Sets a type map to use for BSON unserialization
- Persisting Data
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mongodb-driver-cursorinterface.settypemap.php