-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[generate:entity:content] in drupal 9 does not create entity table #4286
Comments
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: and run "drush entup" |
Thanks, works for me |
Thanks works for me too |
Thanks a lot |
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. 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).
The text was updated successfully, but these errors were encountered: