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
Issue fork field_inheritance-3529602
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
Comment #4
plopescMerged MR that checks the field existence before a¡making any DB update.