[TYPO3-mvc] mm relation with attributes

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Jun 17 12:54:04 CEST 2011


Hey Christian,

> Thanks for the hint, I would have never found that post.
> But, unfortunately, it seems that this doesn't work anymore:
>
> <f:form.textbox
> name="patient[diagnosis][{oneDiagnosis.uid}][diagnosisName]"
> value="{oneDiagnosis.diagnosisName}"/>
>
> <f:form.hidden name="patient[diagnosis][{oneDiagnosis.uid}][__identity]"
> value="{oneDiagnosis.uid}"/>
>
> When I try that with my objects, I get an exeption, that an Object is
> expected, but an array given :-(

This error appears on submitting the form, right? Have you checked your 
template for typos? Also be careful with newly added childobjects - 
those don't have a identity yet and thus you shouldn't set the hidden 
__identity field in those cases.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list