[TYPO3-mvc] where do I set "CONFIGURATION_CREATION_ALLOWED" to TRUE?
Bastian Waidelich
bastian at typo3.org
Fri Sep 16 11:29:14 CEST 2011
Tim Schoch | GSTALTIG wrote:
Hi Tim,
> Do I have to allow the creation of Data objects explicitly?
You will have to explicitly allow creation and modification of "sub
objects" only. That is, if you have a form with nested objects, you'll
have to create an initialize<actionName>Action method and call
$this->arguments['<argumentName>']->getPropertyMappingConfiguration()->allowCreationForSubProperty('<propertyName>');
to allow creation and/or
$this->arguments['<argumentName>']->getPropertyMappingConfiguration()->allowModificationForSubProperty('<propertyName>');
to allow modification.
> [...] i've googled "nested objects", "relations" and some other terms, but didn't find a thing [...]
I'm afraid this is not yet documented. But have a look at the FLOW3 Blog
package for an example:
<http://git.typo3.org/FLOW3/Packages/Blog.git?a=blob;f=Classes/Controller/PostController.php;h=725ce66e0a6be201440cc49156f732c5734f4afa;hb=HEAD#l105>
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list