Problem/Motivation

Need to check if an entity has field_inheritance field defined before updating the items in FieldStorageDefinitionSubscriber::onFieldStorageDefinitionCreate

Caused by

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_inheritance' in 'WHERE': UPDATE "test61927146registrant" SET "field_inheritance"=:db_update_placeholder_0
WHERE "field_inheritance" IS NULL; Array
(
    [:db_update_placeholder_0] => a:0:{}
)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

plopesc created an issue. See original summary.

  • plopesc committed 3c6c9912 on 3.x
    Issue #3529602 by plopesc: FieldStorageDefinitionSubscriber can cause...
plopesc’s picture

Status: Active » Fixed

Merged MR that checks the field existence before a¡making any DB update.

Status: Fixed » Closed (fixed)

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