Issue Bug Closed

#106852TCA columns config type "passthrough" does not respect "foreign_table"

George Miller 06/09/25, 15:17 updated 06/17/25, 11:46

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

  1. Georg Ringer commented and changed status New Needs Feedback 06/09/25, 19:09

    Thanks for creating the issue!

    passthrough means that it shouldn’t be transformed, so why should foreign_table be respected? Why not properly configure the field?

  2. George Miller commented 06/11/25, 08:27

    Georg Ringer wrote in #note-1:
    > Thanks for creating the issue!
    >
    > passthrough means that it shouldn’t be transformed, so why should foreign_table be 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.

  3. 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!?

  4. 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.

  5. Garvin Hicking commented and changed status Needs Feedback Closed 06/17/25, 11:46

    Great, 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.