MongoDB\Driver\CursorInterface::setTypeMap
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization
説明
abstract public MongoDB\Driver\CursorInterface::setTypeMap
( array
$typemap
) : voidSets the type map configuration to use when unserializing the BSON results into PHP values.
返り値
値を返しません。
エラー / 例外
- 引数のパースに失敗した場合に MongoDB\Driver\Exception\InvalidArgumentException をスローします。
参考
- MongoDB\Driver\Cursor::setTypeMap() - Sets a type map to use for BSON unserialization
- Persisting Data