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
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$priority integer
$sourceTypes array
$targetType string

Méthodes publiques

Méthode 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 méthode

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
Résultat object the target type

Property Details

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface

$priority protected_oe property

protected int $priority
Résultat integer

$sourceTypes protected_oe property

protected array $sourceTypes
Résultat array

$targetType protected_oe property

protected string $targetType
Résultat string