Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295330

Add entity type to FieldException messages thrown in SqlContentEntityStorageSchema

$
0
0

Problem/Motivation

The exceptions thrown by SqlContentEntityStorageSchema give the field name, but not the entity type.

This can be confusing when it's a common field name such as 'title' or 'type' which is causing the problem.

Steps to reproduce

Proposed resolution

Agree on new exception message
Option A
Illegal initial value definition on new_base_field (entity_test_update entity): Both fields have to be stored in the shared entity tables.

Option B
Illegal initial value definition on field 'new_base_field' on entity type 'entity_test_update': Both fields have to be stored in the shared entity tables.

Remaining tasks

Update patch with agreed change
Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>