#102336Add support for localizing n:1 relations
Description
When localizing a parent-child relationship (IRRE) from the parent side, DataHandler correctly creates the localized children and also sets their “parent” relation (n:1) field to the localized parent.
But when localizing a parent-child relationship from the other (child) side (or localizing any record containing n:1 relations in general), DataHandler does not set these (n:1) relations to point to the localized record (instead, they point to the L=0 record). This is not a consistent behavior and at least breaks extbase, too.
The current behaviour is also problematic in the following use case: When having a parent-child relationship with 100 parents each owning 100 children. In addition to the “parent” (n:1) relation, these children also contain any other n:1 relations to different models. Now after localizing a “parent”, for each “children” these additional n:1 relations must be modified manually by an editor to point to the localized record (which is impossible when dealing with larger datasets).
My suggestion is, when localizing a record containing any n:1 relation, DataHandler should behave like this:
- Lookup if there is any localized version of this (n:1) relation target
- If there is, set the relation to the localized records uid
- If there isn’t, set the relation to the original records uid (as a fallback)
Reviews 1
Related issues 5
- Bug #90430Language handling of bidirectional mm selects is not consitent.
- Feature #94539Documentation on how to work with 1:n and n:1 relations and translations
- Bug #105843Language fallback broken for objectstorages
- Epic #108986Improve MM handling in TYPO3 Core related to language + workspace concepts
- Bug #111492Saving nested inline records in a workspace breaks the grandchild’s parent relation
History 67
-
Jan Kornblum changed Related to #90430 <span data-processor="relativetime" data-value="2023-11-07T10:10:18+00:00" > 11/07/23, 10:10 </span>
-
Jan Kornblum changed subject
Add support for localizing n:1 relations to DataHandlerAdd support for localizing n:1 relations <span data-processor="relativetime" data-value="2023-11-07T10:11:20+00:00" > 11/07/23, 10:11 </span> -
Jan Kornblum changed Related to #94539 <span data-processor="relativetime" data-value="2025-01-07T11:13:47+00:00" > 01/07/25, 11:13 </span>
-
Jan Kornblum changed Related to #105843 <span data-processor="relativetime" data-value="2025-01-07T11:14:20+00:00" > 01/07/25, 11:14 </span>
-
Benni Mack changed Related to #108986 <span data-processor="relativetime" data-value="2026-02-15T17:19:21+00:00" > 02/15/26, 17:19 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 94879 status
NewUnder Review <span data-processor="relativetime" data-value="2026-07-22T10:16:56+00:00" > 07/22/26, 10:16 </span> -
Jan Kornblum changed Related to #111492 <span data-processor="relativetime" data-value="2026-11-18T17:04:35+00:00" > 11/18/26, 17:04 </span>