[TYPO3-dev] exec_SELECT_mm_query

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Thu Feb 9 20:08:01 CET 2006


Mario Matzulla schrieb:
> Hi list,
> 
> I was working with tt_news and tt_news_cat. Both are related through a
> M:M relation.
> 
> Now my problem:
> If I do an exec_SELECT_mm_query both tables get merged into one
> result-row. But both tables contain a title column. The tt_news title
> column gets overwritten by the tt_news_cal column.
> 
> Shouldn't the result include the table names like "tt_news.title" and
> "tt_news_cat.title" so this wouldn't happen?
> 
> Maybe I havn't seen a configuration option, then please point me to it.
> 
> Regards
> Mario Matzulla


You could try the extension elba, that does this naming automatically.

Building mm-Relations is also done automatically. It simply takes the
information from $TCA for that.

There is documentation in the classes but I still want to write a demo
extension, that shows the practical use.

/el











More information about the TYPO3-dev mailing list