[TYPO3-dev] Symmetric bidirectional MM ralations on the same table

Stefano Cecere scecere at krur.com
Thu Feb 24 22:38:30 CET 2011


On Thu, 24 Feb 2011 21:14:48 +0100, Steffen Kamper <info at sk-typo3.de>  
wrote:

> Hi,
>
> Am 24.02.2011 20:58, schrieb Helmut Hummel:
>> Hi,
>>
>> On 24.02.11 19:31, Stefano Cecere wrote:
>>> any news on self symmetrical MM relations?
>>>
>>> now we have 4.5 .. and i was hoping they had come!
>>>
>>> maybe we could add a new special tca variable  (like "self" enabled)..  
>>> so
>>> that the relation can be searched in both ways?
>>>
>>> any idea?
>>
>> I would use a tcemain hook that adds the opposite relation to the mm  
>> table.
>>
>
> ... as proof of concept. At the end i would wish to have correct fixes  
> in core, i kmow there are some issues where mm tables are not updated  
> proper, or records not deleted if parent records are deleted.

i'll do asap an experiment with the hook.
i didn't think anyway about deleting the mm_relations whenever a parent  
gets deleted.. arg..

anybody knows how it is solved with FLOW3/Doctrine2 ?


-- 
____    ___   __  _ ______________________

   Stefano Cecere
   krur.com multimedia




More information about the TYPO3-dev mailing list