Jackalope\ObjectManager::cascadeDeleteVersion PHP Method

cascadeDeleteVersion() protected method

Notify all cached version children that they are deleted as well and clean up internal state
protected cascadeDeleteVersion ( string $absPath )
$absPath string parent version node that was removed
    protected function cascadeDeleteVersion($absPath)
    {
        // delete all versions, similar to cascadeDelete
        foreach ($this->objectsByPath['Version\\Version'] as $path => $node) {
            if (strpos($path, "{$absPath}/") === 0) {
                // versions are read only, we simple unset them
                unset($this->objectsByUuid[$node->getIdentifier()], $this->objectsByPath['Version\\Version'][$absPath]);
                if (!$node->isDeleted()) {
                    $node->setDeleted();
                }
            }
        }
    }