[TYPO3-mvc] Extbase PropertyMapper in 1.2.0 (TYPO3 4.4)

Nikolas Hagelstein lists at shr.cc
Wed Mar 16 17:57:40 CET 2011


Hi,

Just a short guess:
Child objects are persisted from their root -"parent".

So did you try it this way:

controller
$this->view->assing('cart', $cart) // assuming cart is the root


View:

<f:form object="{cart}">
	<f:for each={cart.cartItems} as="cartItem">
		.....
	</f:for>
</f:form>


controller:

updateAction(Tx .... $cart)


If this does not work keep it as it is an "update" the parenten property 
withi what you got from the form.

Would help if you could provide us with a short "asii drawing" of your 
model relations ....:)

Cheers,
Nikolas






More information about the TYPO3-project-typo3v4mvc mailing list