lithium\data\Entity::serialize()
Prepares, enables and executes serialization of the object.
Note: because of the limitations outlined below custom handlers and schema are ignored with serialized objects.
Properties that hold anonymous functions are also skipped. Some of these
can almost be reconstructed (_handlers
) others cannot (schema
).
Returns
stringSerialized properties of the object.
Source
public function serialize() {
return serialize($this->__serialize());
}