Pimcore\Model\Asset::renewInheritedProperties PHP Method

renewInheritedProperties() public method

    public function renewInheritedProperties()
    {
        $this->removeInheritedProperties();
        // add to registry to avoid infinite regresses in the following $this->getDao()->getProperties()
        $cacheKey = "asset_" . $this->getId();
        if (!\Zend_Registry::isRegistered($cacheKey)) {
            \Zend_Registry::set($cacheKey, $this);
        }
        $myProperties = $this->getProperties();
        $inheritedProperties = $this->getDao()->getProperties(true);
        $this->setProperties(array_merge($inheritedProperties, $myProperties));
    }