Issue Task Closed

#63928Why is MM_opposite_field working with inline?

Eike Starkmann 12/16/14, 12:46 updated 03/17/20, 14:34

Description

Hi,

I have this situation:

A bidirectional MM relation
events <-> projects

In event I use select:

'projects' => array(
...
        'config' => array(
            'type' => 'select',
            'foreign_table' => 'tx_extendeventmgmt_domain_model_projects',
...

In project is use inline:

'events' => array(
                'exclude' => 1,
                'label' => 'LLL:EXT:eventmgmt/Resources/Private/Language/locallang_db.xlf:tx_eventmgmt_domain_model_event.events',
                'config' => array(
                    'type' => 'inline',
                    'foreign_table' => 'tx_eventmgmt_domain_model_event',
                    'MM' => 'tx_extendeventmgmt_event_projects_mm',
                    'MM_opposite_field' => 'projects',
                    'appearance' => array(
                        'collapseAll' => 0,
                        'levelLinksPosition' => 'top',
                        'collapseAll' => TRUE,
                        'showPossibleLocalizationRecords' => 1,
                    ),
                    'behaviour' => array(
                        'localizationMode' => 'select',
                        'localizeChildrenAtParentLocalization' => TRUE,
                    ),
                    'size' => 10,
                    'autoSizeMax' => 30,
                    'maxitems' => 9999,
                    'multiple' => 1,
            ),
        ),

When I select a project on the event side the event should also be shown on the project side.
When I add ‘MM_opposite_field’ => ‘projects’ it works, if I don’t it doesn’t.

As far as I know MM_opposite_field is just for “select”, not for “inline” and the documentation (http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Inline/Index.html) says nothing about MM_opposite_field.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.