protected function modelToNorm($value)
    {
        try {
            /* @var DataTransformerInterface $transformer */
            foreach ($this->config->getModelTransformers() as $transformer) {
                $value = $transformer->transform($value);
            }
        } catch (TransformationFailedException $exception) {
            throw new TransformationFailedException(
                'Unable to transform value for property path "'.$this->getPropertyPath().'": '.$exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }

        return $value;
    }
protected function modelToNorm($value)
    {
        try {
            /* @var DataTransformerInterface $transformer */
            foreach ($this->config->getModelTransformers() as $transformer) {
                $value = $transformer->transform($value);
            }
        } catch (TransformationFailedException $exception) {
            throw new TransformationFailedException(
                'Unable to transform value for property path "'.$this->getPropertyPath().'": '.$exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }

        return $value;
    }
protected function modelToNorm ( $ value ) { try { /* @var DataTransformerInterface $transformer */ foreach ( $ this -> config -> getModelTransformers ( ) as $ transformer ) { $ value = $ transformer -> transform ( $ value ) ; } } catch ( TransformationFailedException $ exception ) { throw new TransformationFailedException ( 'Unable to transform value for property path "' . $ this -> getPropertyPath ( ) . '": ' . $ exception -> getMessage ( ) , $ exception -> getCode ( ) , $ exception ) ; } return $ value ; }
Normalizes the value if a normalization transformer is set.

@param mixed $value The value to transform

@return string

@throws TransformationFailedException If the value cannot be transformed to "normalized" format
Normalizes the value if a normalization transformer is set .