Open stef-van-looveren opened 4 years ago
If any one is struggling with this issue, it is because the module was enabled before the creation of the entity, resulting in the skipping of any table creation.
Solution: Use this module: https://www.drupal.org/project/devel_entity_updates
and run "drush entup"
Thanks, works for me
Thanks works for me too
Thanks a lot a head scratcher really
I had the same problem, and the comments in this issue helped me get to the root of it. In my case, I answered "No" (which is the default provided response) to "The entity type has bundle?" It didn't create the schema.info.yml file, which means it didn't create the entity. When I answered "Yes", I had no issues.
Thanks!
Problem/Motivation
Generating a content entity does not create entity table.
How to reproduce
The error
When i proceed to /admin/structure/offer:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'x__x.offer' doesn't exist: SELECT COUNT(*) AS "expression" FROM (SELECT 1 AS "expression" FROM {offer} "base_table") "subquery"; Array ( ) in Drupal\Core\Entity\EntityListBuilder->getEntityIds() (line 104 of core/lib/Drupal/Core/Entity/EntityListBuilder.php).