FieldStorageDefinitionSubscriber can cause unexpected errors for entities with no defined Field Inheritance

Created on 11 June 2025, 13 days ago

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

๐Ÿ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain plopesc Valladolid

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024