Skip to content

Instantly share code, notes, and snippets.

@svparijs
Created November 22, 2012 11:01
Show Gist options
  • Save svparijs/4130571 to your computer and use it in GitHub Desktop.
Save svparijs/4130571 to your computer and use it in GitHub Desktop.
Relation set between Organisation and Alias in OneToMany
if ($this->arguments->hasArgument('organisation')) {
$propertyMappingConfigurationForOrganisation = $this->arguments->getArgument('organisation')->getPropertyMappingConfiguration();
$propertyMappingConfigurationForOrganisation
->forProperty('aliases.*')
->setTypeConverterOption(
'TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter',
\TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED,
TRUE
);
$propertyMappingConfigurationForOrganisation
->forProperty('aliases.*')
->setTypeConverterOption(
'TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter',
\TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED,
TRUE
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment