| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
The MongoDB\BSON\ObjectId class(mongodb >=1.0.0) はじめにBSON type for an » ObjectId. The value consists of 12 bytes, where the first four bytes are a timestamp that reflect the ObjectId's creation. Specifically, the value consists of:
In MongoDB, each document stored in a collection requires a unique _id field that acts as a primary key. If an inserted document omits the _id field, the driver automatically generates an ObjectId for the _id field. Using ObjectIds for the _id field provides the following additional benefits:
クラス概要
MongoDB\BSON\ObjectId
implements
MongoDB\BSON\ObjectIdInterface
,
MongoDB\BSON\Type
,
Serializable
,
JsonSerializable
{
/* メソッド */
}変更履歴
目次
|
![]() |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「The MongoDB\BSON\ObjectId class」をGoogle検索
|