Returns the sub-configuration for the passed $propertyName. Must ALWAYS return a valid configuration object!
public getConfigurationFor ( string $propertyName ) : Neos\Flow\Property\PropertyMappingConfigurationInterface | ||
$propertyName | string | |
return | Neos\Flow\Property\PropertyMappingConfigurationInterface | the property mapping configuration for the given $propertyName. |
/** * @test */ public function forPropertyWithAsteriskAllowsArbitraryPropertyNamesWithGetConfigurationFor() { // using stdClass so that class_parents() in getTypeConvertersWithParentClasses() is happy $this->propertyMappingConfiguration->forProperty('items.*')->setTypeConverterOptions('stdClass', ['k1' => 'v1']); $configuration = $this->propertyMappingConfiguration->getConfigurationFor('items')->getConfigurationFor('6'); $this->assertSame('v1', $configuration->getConfigurationValue(\stdClass::class, 'k1')); }