[TYPO3-mvc] Multiple MM relations using the same relation table with ident column

Tobias Pinnekamp typo3 at tpinne.de
Mon Jul 27 13:35:06 CEST 2009


Hi

> also core doen't handle this correct, as tablenames never written by
> default. Try to add
> 'neg_foreign_table' => tx_moviedb_domain_model_person'

I added the config, but this ends up, that in the backend form I have 
all posibble person records twice in the list of selectable persons. 
With positive and negative values. In the frontend nothing changes. The 
assigned person with a negative id doesn't show up and the other show 
for each relation all related person.

For example:
A movie has "Person A" and "Person B" as actors, and "Person C" as 
director. The backend saves them perfectly and even the tablenames are 
written correctly in the database (for each relation 
'tx_moviedb_domain_model_person'). But the frontend shows for each 
relation (actor and director) all three persons A-C.

It seems to be a not yet supported feature yet. I digged a little bit 
into the extbase code and found in 
"extbase/Classes/Persistence/Mapper/DataMap.php" in line 225 the notice 
"// TODO support for MM_insert_fields and MM_match_fields".

So think I have to wait a little bit.

But thanks for your hints.

Greets
Tobias


More information about the TYPO3-project-typo3v4mvc mailing list