Problem/Motivation

Currently we only support Dynamic Entity Reference versions 2.x and 4.x. These versions allow the use of string based entity IDs, while version 3.x only allows integer IDs.

Not all projects need entities with string IDs and would prefer to use the stable 3.x release of Dynamic Entity Reference, especially because the 4.x branch is currently in alpha and its current implementation using triggers does not yet fully support recent databases like MySQL 8.0 or MariaDB 11.

Proposed resolution

Probably just allowing 3.x in composer.json is sufficient. It doesn't look like our code has any strict requirements on string IDs.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pfrenssen created an issue. See original summary.

pfrenssen’s picture

Status: Active » Needs work

We have a test that checks that we can save a meta entity associated with an entity using string IDs. We should ideally test with both versions of Dynamic Entity Reference.

pfrenssen’s picture

Issue tags: +DevDaysBurgas2024

  • pfrenssen committed 390c14c0 on 8.x-1.x
    Issue #3438085 by pfrenssen: Support Dynamic Entity Reference 3.x
    
pfrenssen’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.