public function resolveMapping($attributeName, $value)
    {
        //when no mappings was defined, returns raw value
        if (!$this->hasMapping($attributeName)) {
            return $value;
        }

        $mappings = $this->mappingsContainer[$attributeName];
        if (is_array($mappings)) {
            foreach ($mappings as $mappingResolver) {
                if (!$mappingResolver instanceof MappingInterface) {
                    //get mapping instance from mapping manager
                    $mappingResolver = MappingManager::find($mappingResolver);
                }
                $mappingResolver->resolve($value);
            }
        }

        return $value;
    }
public function resolveMapping($attributeName, $value)
    {
        //when no mappings was defined, returns raw value
        if (!$this->hasMapping($attributeName)) {
            return $value;
        }

        $mappings = $this->mappingsContainer[$attributeName];
        if (is_array($mappings)) {
            foreach ($mappings as $mappingResolver) {
                if (!$mappingResolver instanceof MappingInterface) {
                    //get mapping instance from mapping manager
                    $mappingResolver = MappingManager::find($mappingResolver);
                }
                $mappingResolver->resolve($value);
            }
        }

        return $value;
    }
public function resolveMapping ( $ attributeName , $ value ) { //when no mappings was defined, returns raw value if ( ! $ this -> hasMapping ( $ attributeName ) ) { return $ value ; } $ mappings = $ this -> mappingsContainer [ $ attributeName ] ; if ( is_array ( $ mappings ) ) { foreach ( $ mappings as $ mappingResolver ) { if ( ! $ mappingResolver instanceof MappingInterface ) { //get mapping instance from mapping manager $ mappingResolver = MappingManager :: find ( $ mappingResolver ) ; } $ mappingResolver -> resolve ( $ value ) ; } } return $ value ; }
Filter value of indicated attribute by applying defined mappings

@param string $attributeName
@param mixed $value
@return mixed
Filter value of indicated attribute by applying defined mappings