[TYPO3-mvc] MM on self using IRRE
Henjo Hoeksma
me at henjohoeksma.nl
Mon Sep 12 00:49:16 CEST 2011
On 2011-09-11 21:11:11 +0000, Marc Bastian Heinrichs said:
> Hej,
>
>> I know a lot has been said about MM relationships. Less has been said
>> about MM relations to an object of the same kind, but still somethings
>> has been said about it.
>>
>> I wonder if there is a working solution to create a MM relation (IRRE,
>> symmetric) with Extbase.
>>
>> I can get this to perfectly work in the TCA. When getting to the FE
>> though, it tries to find the uid_local from the MM-table in the object,
>> which of course doesn't work.
>>
>> I set the mapping of the respective property to the uid column, and it
>> got the sql error out of the. But none of the records were found in the
>> foreach loop in Fluid, so I gues something goes wrong here still.
>>
>> I have a workaround now, but would like to know if this should be
>> working at this point of time.
>
> I'm no IRRE expert, but what I could say is, that extbase doesn't
> support IRRE with an t3-core mm-table. If I have it correct in mind,
> you could define an irre based mm-relation by using an own special
> mm-model. I think, that there are some examples here.
>
> Best
> Marc Bastian
Hi Marc,
thanks for your response. Using IRRE MM with Extbase itself is not the
problem. Using it as a relation to itself (i.e. Post <-M:N-> Post to
show related posts) does not work out with IRRE/Extbase.
I have not been able to find a solution in the list for that, but maybe
I looked at the wrong place.
Any clues are welcomed ;-)
Thanks,
Henjo
More information about the TYPO3-project-typo3v4mvc
mailing list