src/Sulu/Component/DocumentManager/Subscriber/Core/MappingSubscriber.php
private function hydrateGenericField(
        NodeInterface $node,
        DocumentAccessor $accessor,
        $fieldName,
        $locale,
        array $fieldMapping
    ) {
        try {
            $phpcrName = $this->encoder->encode($fieldMapping['encoding'], $fieldMapping['property'], $locale);
            $value = $node->getPropertyValueWithDefault(
                $phpcrName,
                $this->getDefaultValue($fieldMapping)
            );
            $accessor->set($fieldName, $value);
        } catch (InvalidLocaleException $ex) {
            // arguments invalid, no valid propertyname could be generated (e.g. no locale given for localized encoding)
            return;
        }
    }
private function hydrateGenericField(
        NodeInterface $node,
        DocumentAccessor $accessor,
        $fieldName,
        $locale,
        array $fieldMapping
    ) {
        try {
            $phpcrName = $this->encoder->encode($fieldMapping['encoding'], $fieldMapping['property'], $locale);
            $value = $node->getPropertyValueWithDefault(
                $phpcrName,
                $this->getDefaultValue($fieldMapping)
            );
            $accessor->set($fieldName, $value);
        } catch (InvalidLocaleException $ex) {
            // arguments invalid, no valid propertyname could be generated (e.g. no locale given for localized encoding)
            return;
        }
    }
private function hydrateGenericField ( NodeInterface $ node , DocumentAccessor $ accessor , $ fieldName , $ locale , array $ fieldMapping ) { try { $ phpcrName = $ this -> encoder -> encode ( $ fieldMapping [ 'encoding' ] , $ fieldMapping [ 'property' ] , $ locale ) ; $ value = $ node -> getPropertyValueWithDefault ( $ phpcrName , $ this -> getDefaultValue ( $ fieldMapping ) ) ; $ accessor -> set ( $ fieldName , $ value ) ; } catch ( InvalidLocaleException $ ex ) { // arguments invalid, no valid propertyname could be generated (e.g. no locale given for localized encoding) return ; } }
Hydrate "scalar" field types.

@param NodeInterface $node
@param DocumentAccessor $accessor
@param mixed $fieldName
@param mixed $locale
@param array $fieldMapping
Hydrate scalar field types .