[TYPO3-mvc] extjs itemselector and extbase: map a comma separated list of values to Tx_Extbase_Persistence_ObjectStorage

Dmitri Pisarev dimaip at gmail.com
Tue Mar 9 10:41:41 CET 2010


Hey guys! I'm trying to screw in the Ext's ItemSelector to my extbase 
plugin. It lets me select multiple items and then submits a 
comma-separated list of uid's. In my model I have a foreign key type of 
relationship between Invoice and Suproject, so I can add multiple 
subprojects to one invoice, and one subproject can belong to only one 
invoice.
If I submit subprojects list as 
Tx_Alex_Domain_Model_Invoice_Subprojects, nothing happens, it just maps 
it to an empty 
Tx_Extbase_Persistence_ObjectStorage<Tx_Alex_Domain_Model_Subproject>.
I can get that subprojects list as a string to the controller, manually 
explode it, then manually deal with it, but isn't it possible to do it 
automatically?

Thanks in advance,
Dmitri.


More information about the TYPO3-project-typo3v4mvc mailing list