Jackalope\Version\Version::setCachedSuccessorsDirty PHP Method

setCachedSuccessorsDirty() public method

Set all cached successors of this version dirty
    public function setCachedSuccessorsDirty()
    {
        // only set other versions dirty if they are cached, no need to load them from backend just to tell they need to be reloaded
        foreach ($this->getProperty('jcr:successors')->getString() as $postuuid) {
            $post = $this->objectManager->getCachedNodeByUuid($postuuid, 'Version\\Version');
            if ($post) {
                $post->setDirty();
            }
        }
    }