DX for translatable entities: Exception when omitting the "data_table" for entity types

Created on 22 February 2019, almost 6 years ago
Updated 6 April 2024, 9 months ago

Problem/Motivation

When writing contrib modules with custom translatable entities, hard-to-interpret SQL exceptions can hit developers.

This issue provides a patch with a much simpler approach to Omitting the "base_table" or "data_table" for entity types is broken .

While there is movement in Deprecate table names from entity definitions to remove table names from the entity annotation, it could only be added in Drupal 9.

Proposed resolution

  • Add more explicit exception texts to speed up development. In particular, it helps with "broken" ContentEntityType annotations.
  • Add a test for these exceptions.

Remaining tasks

Review and commit.

User interface changes

None.

API changes

None.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Entity 

Last updated about 16 hours ago

Created by

🇩🇪Germany gogowitsch

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024