Persistable
interface Persistable implements Unserializable, Serializable (View source)
Classes may implement this interface to take advantage of automatic ODM (object document mapping) behavior in the driver.
Methods
bsonUnserialize(array $data)
Constructs the object from a BSON array or document Called during unserialization of the object from BSON.
from
Unserializable
PackedArray
bsonSerialize()
No description
Details
bsonUnserialize(array $data)
Constructs the object from a BSON array or document Called during unserialization of the object from BSON.
The properties of the BSON array or document will be passed to the method as an array.
PackedArray
bsonSerialize()
Since: 1.17.0
No description