Neos\Flow\Property\TypeConverter\PersistentObjectSerializer::convertFrom PHP Метод

convertFrom() публичный Метод

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
Результат object the target type
    public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
    {
        $identifier = $this->persistenceManager->getIdentifierByObject($source);
        return $identifier;
    }
PersistentObjectSerializer