Neos\Flow\Mvc\Controller\MvcPropertyMappingConfiguration::setTargetTypeForSubProperty PHP Метод

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

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.
public setTargetTypeForSubProperty ( string $propertyPath, string $targetType ) : MvcPropertyMappingConfiguration
$propertyPath string
$targetType string
Результат MvcPropertyMappingConfiguration this
    public function setTargetTypeForSubProperty($propertyPath, $targetType)
    {
        $this->forProperty($propertyPath)->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_TARGET_TYPE, $targetType);
        return $this;
    }