Results of 1 - 3 of about 3 for pclass (0.001 sec.)
- Serialization and deserialization of PHP variables into MongoDB | PHP 8.3 11849
- Serialization and deserialization of PHP variables into MongoDB This document discusses how compound structures (i.e. documents, arrays, and objects) are converted between BSON and PHP values. Serialization to BSON Arrays If an array is a p
... erializable ), obtain the properties in a similar way as in the previous paragraphs, but also add an additional property __pclass as a Binary value, with subtype 0x80 and data bearing the fully qualified class name of the object that is being serialize ... d. The __pclass property is added to the array or object returned by MongoDB\BSON\Serializable::bsonSerialize() , which means it will over ... write any __pclass key/property in the MongoDB\BSON\Serializable::bsonSerialize() return value. If you want to avoid this behaviour and set y ...
-
https://man.mtool.work/php/8.3/mongodb.persistence.html
- The MongoDB\BSON\Persistable interface | PHP 8.3 8519
- The MongoDB\BSON\Persistable interface (mongodb >=1.0.0) はじめに Classes may implement this interface to take advantage of automatic ODM (object document mapping) behavior in the extension. During serialization, the extension will inject a
... __pclass property containing the PHP class name into the data returned by MongoDB\BSON\Serializable::bsonSerialize() . During unser ... ialization, the same __pclass property will then be used to infer the PHP class (independent of any type map configuration) to be constructed before Mon ... information. 注意 : Even if MongoDB\BSON\Serializable::bsonSerialize() would return a sequential array, injection of the __pclass property will cause the object to be serialized as a BSON document. インターフェイス概要 class MongoDB\BSON\Persistable im ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-persistable.html
- MongoDB\Driver\Query::__construct — Create a new Query | PHP 8.3 7515
- MongoDB\Driver\Query::__construct (mongodb >=1.0.0) MongoDB\Driver\Query::__construct — Create a new Query 説明 final public function MongoDB\Driver\Query::__construct ( array | object $filter , ? array $queryOptions = null ) Constructs a n
... to include in the returned documents. If you are using the ODM functionality to deserialise documents as their original PHP class, make sure that you include the __pclass field in the projection. This is required for the deserialization to work and wi ...
-
https://man.mtool.work/php/8.3/mongodb-driver-query.construct.html
PREV
1
NEXT