According to https://api.drupal.org/api/drupal/core!modules!system!entity.api.php/gro...

> For content entities, the annotation will refer to a number of database tables and their fields. These annotation properties, such as 'base_table', 'data_table', 'entity_keys', etc., are documented on \Drupal\Core\Entity\EntityType. Your module will also need to set up its database tables using hook_schema().

This is no longer true, as can be seen with Node module for instance. Entity tables are no longer defined in hook_schema().

Novice task/proposed resolution

Take out the sentence that says you will need to set up the database tables.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Yeah, that changed and the docs need to be fixed.

jmolivas’s picture

Issue summary: View changes

Fixing broken link to the docs

cilefen’s picture

@jmolivas Please note in the issue summary if there are any tasks a novice can perform after you have looked it over.

cilefen’s picture

@jmolivas Sorry, I misunderstood. Thank you for fixing the link.

jhodgdon’s picture

Issue summary: View changes

I think all we need in the patch is for the sentence about hook_schema to be taken out.

cilefen’s picture

Issue summary: View changes
marcoscano’s picture

Status: Active » Needs review
FileSize
831 bytes

Good novice task :)
Hope I didn't mess up with anything

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

That's it, thanks!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 74520b4 on 8.0.x
    Issue #2491691 by marcoscano, cilefen, jhodgdon, joachim: Entity API...
xjm’s picture

Hah. :) Legacy bit left over from our second-to-last beta blocker. This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x. Thanks everyone!

xjm’s picture

lol. Looks like @webchick won that crosspost.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.