Hello. I am in the process of creating custom fields for a custom module. These fields must remain in the module’s main table, so they are being created manually by declaring them in ./custom/Extension/modules/<module>/Ext/Vardefs/<file>.php
This works fine, but I need to create a field of type relation. And I can’t find an example of how to do it in this context
This is what I’m trying
$dictionary['sonar_accreditation']['fields']['field_c'] = [
'name' => 'field_c',
'vname' => 'LBL_FIELD_C',
'type' => 'relate',
'link' => 'custom_tipo_pulsera',
'table' => 'custom_tipo_pulsera',
'join_name' => 'custom_tipo_pulsera',
'module' => 'custom_tipo_pulsera',
'required' => false,
'importable' => 'true',
'reportable' => true,
'audited' => false,
];
Could you share an example with me? Thanks in advance