Issue Feature Under Review Stale

#107462TypeConverters should support converting one object into another

Simon Schaufelberger 09/15/25, 15:41 updated 09/04/26, 22:04

Description

In my project i map a lot of DTOs into actual domain models. This is currently done with a lot of custom factories but could also be done with TypeConverters as this is exactly what they are supposed to do: map some input data onto another. Currently only simple types are allowed but why are not objects allowed? This doesn’t make any sense.

Example code that should work:

$dto = new ArticleDto();
$dto->setArticleNumber(123);

$propertyMapper = GeneralUtility::makeInstance(PropertyMapper::class);
$rticle = $propertyMapper->convertFrom($dto, Article::class);

Reviews 1

History 39

  1. Georg Ringer commented <span data-processor="relativetime" data-value="2025-09-15T19:08:36+00:00" > 09/15/25, 19:08 </span>

    i guess because it was once only used to map get/post to something else and a request can be an object.
    looks like a missing feature, wanna go for it?