lithium\data\Entity::serialize PHP Метод

serialize() публичный Метод

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 (_methodFilters and schema).
public serialize ( ) : string
Результат string Serialized properties of the object.
    public function serialize()
    {
        $vars = get_object_vars($this);
        unset($vars['_schema']);
        unset($vars['_config']['schema']);
        unset($vars['_handlers']);
        unset($vars['_methodFilters']);
        return serialize($vars);
    }