#106852TCA columns config type "passthrough" does not respect "foreign_table"
Description
Description
The TCA column config type passthrough is no longer taken into account. As a result, it is no longer possible to use passthrough columns as refernces in Domain/Models.
Example
TCA
'page' => [
'config' => [
'type' => 'passthrough',
'foreign_table' => 'pages',
]
]
Model
protected ?Page $page = null;Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 5
-
Georg Ringer commented and changed status
NewNeeds Feedback 06/09/25, 19:09 -
George Miller commented 06/11/25, 08:27
Georg Ringer wrote in #note-1:
> Thanks for creating the issue!
>
>passthrough meansthat it shouldn’t be transformed, so why shouldforeign_tablebe respected? Why not properly configure the field?Many thanks for the quick reply. What does properly configured mean in this case? We need this application case for the plugin-internal use of data that does not have to or should not be displayed. The data is required, e.g. in Fluid, but is not manipulated, which corresponds to the intended use.
-
Garvin Hicking commented and changed category 06/11/25, 10:42
In this case you should probably set up the type so that it COULD be manipulated with TCA properly (using the relations you want to offer).
And then, the field could simply be removed from your palette, so it won’t be editable in FormEngine. This will then properly allow the DataHandler to do it’s work, and the TCA Schema can do its work because “passthrough” will also effectively disable other TCA attributes being evaluated/mapped.
Hope that helps!?
-
George Miller commented 06/17/25, 10:12
All right, now I understand what was meant.
Thank you very much for the information and all the great work you put into the project. -
Garvin Hicking commented and changed status
Needs FeedbackClosed 06/17/25, 11:46Great, if at least sometimes my feedback helps, I’m a happy person.
I hoope it’s fine to close this issue for now. If you face issues with the recommendation, please feel free to join talk.typo3.org or our slack so we can try to work it out.
Thanks for creating the issue!
passthrough meansthat it shouldn’t be transformed, so why shouldforeign_tablebe respected? Why not properly configure the field?