[TYPO3-mvc] Tips on how to get inverted MM relations

Frank Gerards F.Gerards at esolut.de
Tue May 22 09:34:44 CEST 2012


Hi,

this is done in the TCA of Record-Type B, keywords here are mm_opposite_field --- google it :)

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Stephen Bungert
Gesendet: Montag, 21. Mai 2012 22:29
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Tips on how to get inverted MM relations

In my model I have a related records field. Record "A" for example can be related to record "B" via an mm table.

This is fine. The related records are found when I view the detail page for record "A". But the detail page for record "B" shows no related records. Is there any easy way to get the detail page for record "B" to show record  "A" 
as a related record - the relationship exists. It's just that it was made from A->B. I want to invert the relationship and find records that relate to B. I know how to do this in a piBase extension, but how can I do this in an extBase extension?
How can I change the fields used by contains() so that it looks for the uid in uid_foreign instead of uid_local? Has anyone done this?

Thanks for any help.

Stephen. 

_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


More information about the TYPO3-project-typo3v4mvc mailing list