Ability to ignore update parent information on field

Created on 11 September 2023, 10 months ago

Problem/Motivation

There is a case, when using Paragraph entity in multiple fields and you would like to reference the same entity. Currently it's not really possible, because parent information will be updated when you save the host entity. So every time it will be changed vice-versa.
I know it is not designed for this kind of working, maybe it is only an issue for me.

Steps to reproduce

Create a field with Entity reference revisions with paragraph target entity and created another field on the same Entity with same Paragraph bundle. Create a new entity and fill the first field. Create a code that will update the second field with the ID of paragraph that created in the first save. That will trigger the changes in parent information

Proposed resolution

Created a patch that not a best solution, but if you can set a primary parent reference, then with this modification you can ignore the rest fields in the storage config page, then it won't create unnecessary revisions in Paragraph entity.

Remaining tasks

TBD

User interface changes

New form option in field instance config page.

API changes

-

Data model changes

-

🌱 Plan
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary bsztreha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024