[TYPO3-dev] thoughts on bidirectional relations

Nikolas Hagelstein hagelstein at shr.cc
Mon Jul 3 17:01:31 CEST 2006


hi,

I am using the bidirectional relations extension. Everthing
works fine beside the "sorting issue".

The problem is that, when editing the MM relation from different places
there are different sort orders whichkonfigu overwrite eachother.
Because writeMM first deletes all relations and then recreates
them.

Imho there are at least 2 solutions i would like to hear your opinion
about:

1.keep sorting configurable
A further tag could be introduced to decide for which direction the
sorting field should be used (foreign/local)

2.store both.
A second sorting field (sorting_foreign) could be introduced to store
the
"foreign point of view" sort order.

Both ways requiere writeMM beeing change to use some kind of update
logic
instead of the imho dangerous "delete all/reinsert" logic 
(see e.g. http://bugs.typo3.org/view.php?id=3347)

so what do you think?
bye,
         NIkolas




More information about the TYPO3-dev mailing list