Problem/Motivation

There are a number of $this->entityManager->getFieldStorageDefinitions() calls in SqlContentEntityStorageSchema. That class already has a $fieldStorageDefinitions property which is always set and already contains the same thing.

Proposed resolution

Use $this->fieldStorageDefinitions instead of $this->entityManager->getFieldStorageDefinitions() in SqlContentEntityStorageSchema.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler created an issue. See original summary.

tstoeckler’s picture

Status: Active » Needs review

Here we go. Will open the issue for which this is a blocker in a minute, but since this is such a harmless change (and the other one will be a bit contentious I fear) wanted to have this separately.

tstoeckler’s picture

Issue tags: -blocker

Actually that's a bug I found with #2346019: Handle initial values when creating a new field storage definition that I had applied locally. So this is still a nice quickfix, but does not actually block anything.

tstoeckler’s picture

D'oh, maybe I should actually upload a patch, no?

joshmiller’s picture

Rerolled. Offset on HEAD by 10 lines.

FWIW, RTBC .. though since I rerolled, I don't think I can RTBC.

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

Makes sense.

This might also help with issues related to uninstalling entity types/field storage definitions.

  • catch committed a50adc9 on 8.5.x
    Issue #2867325 by tstoeckler: SqlContentEntityStorageSchema needlessly...

  • catch committed 881d412 on 8.4.x
    Issue #2867325 by tstoeckler: SqlContentEntityStorageSchema needlessly...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!

Status: Fixed » Closed (fixed)

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