Neos\Flow\Persistence\Doctrine\DataTypes\ObjectArray::decodeObjectReferences PHP Méthode

decodeObjectReferences() protected méthode

Traverses the $array and replaces known persisted objects (tuples of type and identifier) with actual instances.
protected decodeObjectReferences ( array &$array ) : void
$array array
Résultat void
    protected function decodeObjectReferences(array &$array)
    {
        foreach ($array as &$value) {
            if (!is_array($value)) {
                continue;
            }
            if (isset($value['__flow_object_type'])) {
                $value = $this->persistenceManager->getObjectByIdentifier($value['__identifier'], $value['__flow_object_type'], true);
            } else {
                $this->decodeObjectReferences($value);
            }
        }
    }