public function setTargetTypeForSubProperty($propertyPath, $targetType)
    {
        $this->forProperty($propertyPath)->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_TARGET_TYPE, $targetType);
        return $this;
    }
public function setTargetTypeForSubProperty($propertyPath, $targetType)
    {
        $this->forProperty($propertyPath)->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_TARGET_TYPE, $targetType);
        return $this;
    }
public function setTargetTypeForSubProperty ( $ propertyPath , $ targetType ) { $ this -> forProperty ( $ propertyPath ) -> setTypeConverterOption ( PersistentObjectConverter :: class , PersistentObjectConverter :: CONFIGURATION_TARGET_TYPE , $ targetType ) ; return $ this ; }
Set the target type for a certain property. Especially useful
if there is an object which has a nested object which is abstract,
and you want to instantiate a concrete object instead.

@param string $propertyPath
@param string $targetType
@return MvcPropertyMappingConfiguration this
@api
Set the target type for a certain property . Especially useful if there is an object which has a nested object which is abstract and you want to instantiate a concrete object instead .