Skip to content

Keep 2 fields in sync

Version v1


This model demonstrates how a text field in a user entity can be kept in sync with a similar field in an associated profile entity. This works in both directions. Regardless which of the entities gets updated, the other one will be updated automatically as well.

Without paying attention, this could lead into an infinite loop. Therefore, the related entity only gets updated if the field values are not the same already.

The creation of that model has been recorded: Watch the video


  • config
    • field.field.profile.contact_detail.field_real_name
    • field.field.user.user.field_real_name
    • profile.type.contact_detail
  • module
    • eca_base
    • eca_content
    • profile
    • user


  • Update content entity (User: - any -)
  • Update content entity (Profile: Contact detail)



Initial version

Last update: April 14, 2023 14:46:23