[TYPO3-dev] PropertyMapper handling of ObjectStorage in Extbase 6.2
g4-lisz at tonarchiv.ch
g4-lisz at tonarchiv.ch
Tue Sep 16 10:16:08 CEST 2014
On 09/16/2014 09:53 AM, Philipp Schiffmann wrote:
> Hi Till,
>
> thanks for your response. I did in fact use the extension builder to
> generate my models.
> So, here is my model (shortened):
>
> class Reservation extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
>
> /**
> * @var
> \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Acme\Demo\Domain\Model\Resource>
> */
> protected $bookedResources;
> }
>
> my fluid form:
>
> <f:form action="create" name="reservation" object="{reservation}">
> <f:for each="{resources}" as="resource">
> <f:form.checkbox property="bookedResources" value="{resource}" />
>
Ah I see... I actually used arrays as argument for my setter methods in
my extension, and did add the objects to the repository manually...
Did you try value="{resource.uid}"? Like this the form should look like
name="tx_acmedemo_pi1[reservation][bookedResources]][]"
Cheers,
Till
More information about the TYPO3-dev
mailing list