Neos\Flow\Persistence\Generic\LazySplObjectStorage::initialize PHP Méthode

initialize() protected méthode

Loads the objects this LazySplObjectStorage is supposed to hold.
protected initialize ( ) : void
Résultat void
    protected function initialize()
    {
        if (is_array($this->objectIdentifiers)) {
            foreach ($this->objectIdentifiers as $identifier) {
                try {
                    parent::attach($this->persistenceManager->getObjectByIdentifier($identifier));
                } catch (Exception\InvalidObjectDataException $exception) {
                    // when security query rewriting holds back an object here, we skip it...
                }
            }
            $this->objectIdentifiers = null;
        }
    }