Pimcore\Model\Asset::__wakeup PHP Method

__wakeup() public method

public __wakeup ( )
    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 = Asset::getById($this->getId());
            if ($originalElement) {
                $this->setFilename($originalElement->getFilename());
                $this->setPath($originalElement->getRealPath());
            }
        }
        if (isset($this->_fulldump) && $this->properties !== null) {
            $this->renewInheritedProperties();
        }
        if (isset($this->_fulldump)) {
            unset($this->_fulldump);
        }
    }