public function __wakeup()
{
if (isset($this->_fulldump)) {
// set current key and path this is necessary because the serialized data can have a different path than the original element (element was renamed or moved)
$originalElement = Document::getById($this->getId());
if ($originalElement) {
$this->setKey($originalElement->getKey());
$this->setPath($originalElement->getRealPath());
}
}
if (isset($this->_fulldump) && $this->properties !== null) {
$this->renewInheritedProperties();
}
if (isset($this->_fulldump)) {
unset($this->_fulldump);
}
}