I have TYPO3 11.5. I have a custom model "Atto". In my TCA configuration i used:
'atto' => [
'exclude' => true,
'label' => 'Atti',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_atto_domain_model_atto',
'MM' => 'tx_atto_domain_model_atto_mm',
'foreign_table' => 'tx_atto_domain_model_atto',
'foreign_table_where' => ' AND (tx_atto_domain_model_modelloatto.sys_language_uid IN (-1,0) OR tx_atto_domain_model_modelloatto.l10n_parent = 0) ORDER BY tx_atto_domain_model_modelloatto.title',
'MM_opposite_field' => 'atto',
'size' => 10,
'minitems' => 0,
'maxitems' => 99,
'fieldControl' => [
'editPopup' => [
'disabled' => false,
'options' => [
'type' => 'popup',
'title' => 'edit',
'module' => [
'name' => 'wizard_edit',
],
'popup_onlyOpenIfSelected' => true,
'icon' => 'actions-open',
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
],
],
'listModule' => [
'disabled' => false,
'options' => [
'type' => 'script',
'title' => 'list',
'icon' => 'actions-system-list-open',
'params' => [
'table' => 'tx_atto_domain_model_atto',
],
'module' => [
'name' => 'wizard_list',
],
],
],
],
'behaviour' => [
'allowLanguageSynchronization' => true,
],
],
],
The relation works but I don't see the relation with the related content, it's not bidirectional. How can I get to the result I want to achieve? I assumed a save hook but I don't know if it's the correct solution, especially considering the workspaces.