Neos\Flow\Persistence\Doctrine\DataTypes\JsonArrayType::convertToPHPValue PHP Метод

convertToPHPValue() публичный Метод

Converts a value from its database representation to its PHP representation of this type.
public convertToPHPValue ( mixed $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : array
$value mixed The value to convert.
$platform Doctrine\DBAL\Platforms\AbstractPlatform The currently used database platform.
Результат array The PHP representation of the value.
    public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        $this->initializeDependencies();
        switch ($platform->getName()) {
            case 'postgresql':
                $value = is_resource($value) ? stream_get_contents($value) : $value;
                $array = parent::convertToPHPValue($value, $platform);
                break;
            default:
                $array = parent::convertToPHPValue($value, $platform);
        }
        if (is_array($array)) {
            $this->decodeObjectReferences($array);
        }
        return $array;
    }