[TYPO3-dev] PropertyMapper handling of ObjectStorage in Extbase 6.2

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Mon Sep 15 17:27:06 CEST 2014


BTW You didn't use the Extension Buidler? This one makes working code as
you expect it (1:n and m:n).
I wrote a few extensions in 6.2 and they're all working...

On 09/15/2014 05:20 PM, g4-lisz at tonarchiv.ch wrote:
> Hi Philipp,
>
> can you post your fluid form code and the action code, maybe that helps
> us find the issue. Actually, an array with  __identify keys is exactly
> what the mapper expects for objects... So i think it's an issue with
> your fluid form (wrong naming or the like).
>
> Till
>
> On 09/15/2014 04:57 PM, Philipp Schiffmann wrote:
>> Hello,
>>
>> I'm currently developing an extension in Extbase 6.2 and the (rewritten)
>> property mapper won't convert an array of __identity values to an object
>> storage. I have two models with a 1:n relation which I want to edit with a
>> fluid form. However, when I send a request the server dies with this
>> exception:
>> It is not allowed to map property "__identity".
>> So far I found out that the ObjectStorageConverter simply attach()es all of
>> it's convertedChildProperties to a new ObjectStorage and returns it. But:
>> the property mapper configuration contains no information about the target
>> type of the __identity array, thus throwing the exception. Is this mapping
>> not yet implemented? (see this strange TODO:
>> https://git.typo3.org/Packages/TYPO3.CMS.git/blob/3cd2886b8286727861992d3ef691988edb5d2b65:/typo3/sysext/extbase/Classes/Property/TypeConverter/ObjectStorageConverter.php#l28
>>  )
>>
>> I probably made a really dumb error, like setting a wrong annotation in my
>> model or something. Can you point me to an extbase extension that runs
>> under 6.2 and uses namespaces (blog_example and news both don't) AND sends
>> 1:n or m:n relations via http requests?
>>
>> Thank you very much!
>> Best regards
>> Philipp Schiffmann
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list