Project

General

Profile

Bug #103025

Updated by Simon Schaufelberger 10 months ago

I have an extension that uses a TCA configuration without the ctrl part because I don't need it. In my specific case I created a TCA configuration for the table "sys_registry": 

 <pre><code class="php"> 
 <?php 

 declare(strict_types=1); 

 return [ 
     'columns' => [ 
         'entry_namespace' => [ 
             'label' => 'LLL:EXT:registry_editor/Resources/Private/Language/locallang_tca.xlf:sys_registry.entry_namespace', 
             'config' => [ 
                 'type' => 'input', 
                 'size' => 50, 
                 'max' => 128, 
             ], 
         ], 
         'entry_key' => [ 
             'label' => 'LLL:EXT:registry_editor/Resources/Private/Language/locallang_tca.xlf:sys_registry.entry_key', 
             'config' => [ 
                 'type' => 'input', 
                 'size' => 50, 
                 'max' => 128, 
             ], 
         ], 
         'entry_value' => [ 
             'label' => 'LLL:EXT:registry_editor/Resources/Private/Language/locallang_tca.xlf:sys_registry.entry_value', 
             'config' => [ 
                 'type' => 'passthrough', 
             ], 
         ], 
     ], 
 ]; 
 </code></pre> 

 that I need to access the database via extbase but nothing more as the table should not be listed in the backend list view. 

 If I add: 

 <pre><code class="php"> 
     'ctrl' => [], 
 </code></pre> 

 my code breaks because then the core tries to add a "pid" to the query but that table doeesn't have a "pid".

Back