public function unserialize($serialized) {
$data = unserialize($serialized);
foreach ($data as $key => $value) {
$this->{$key} = $value;
}
// Re-establish the PDO connection using the original options.
$this->connection = static::open($this->connectionOptions);
}