[TYPO3-mvc] Dynamic Input -> Domain Model

Christian Schwan - Dimme GmbH christian.schwan at dimme.ch
Mon Jul 12 16:33:15 CEST 2010


He Guys,

I have a form with dynamically adding inputs like:

name="tx_crm_pi1[newBill][items][price][1]"
name="tx_crm_pi1[newBill][items][price][2]"

Domain Model:

Tx_Crm_Domain_Model_Items

/**
* @var array
*/
protected $price;


setProperty(Tx_Crm_Domain_Model_Items, 1, "12")
setProperty($target, $propertyName, $propertyValue)

Should be:

setProperty(Tx_Crm_Domain_Model_Items, 'price', "12")


Is there another way without doing a foreach in the Controller->create to
set the Items??



Ausgehende eMail ist virenfrei.
Von AVG Free SB uberpruft - www.avg.de 
Version: 9.0.830 / Virendatenbank: 271.1.1/2996 - Ausgabedatum: 07/11/10
20:36:00 



More information about the TYPO3-project-typo3v4mvc mailing list