PHP Class Neos\Flow\Property\TypeConverter\PersistentObjectSerializer

Unpersisted changes to an object are not serialized, because only the persistence identifier is taken into account as the serialized value.
Inheritance: extends AbstractTypeConverter
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$priority integer
$sourceTypes array
$targetType string

Public Methods

Method Description
convertFrom ( object $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object Convert an entity or valueobject to a string representation (by using the identifier)

Method Details

convertFrom() public method

Convert an entity or valueobject to a string representation (by using the identifier)
public convertFrom ( object $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object
$source object
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
return object the target type

Property Details

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$priority protected property

protected int $priority
return integer

$sourceTypes protected property

protected array $sourceTypes
return array

$targetType protected property

protected string $targetType
return string