public function __sleep()
{
if (self::$storedConnection === null and $this->connection !== null) {
self::enableSerialization($this->connection);
}
return ['isDetached', 'data', 'modified', 'added', 'removed', 'table', 'mapper', 'keys', 'referenced', 'referencing', 'index', 'proxy'];
}