diff -u b/lib/Drupal/pgn/Plugin/Core/Entity/PgnGame.php b/lib/Drupal/pgn/Plugin/Core/Entity/PgnGame.php --- b/lib/Drupal/pgn/Plugin/Core/Entity/PgnGame.php +++ b/lib/Drupal/pgn/Plugin/Core/Entity/PgnGame.php @@ -20,32 +20,12 @@ * label = @Translation("PGN game entity"), * module = "pgn", * render_controller_class = "Drupal\Core\Entity\EntityRenderController", - * base_table = "pgn_game", - * data_table = "pgn_game_property_data", * fieldable = TRUE, - * entity_keys = { - * "id" = "id", - * "uuid" = "uuid" - * }, * ) */ class PgnGame extends EntityNG implements ContentEntityInterface { /** - * The entity ID. - * - * @var \Drupal\Core\Entity\Field\FieldInterface - */ - public $id; - - /** - * The entity UUID. - * - * @var \Drupal\Core\Entity\Field\FieldInterface - */ - public $uuid; - - /** * The event tag of the PGN game entity. * * @var \Drupal\Core\Entity\Field\FieldInterface @@ -108,8 +88,6 @@ parent::init(); // We unset all defined properties, so magic getters apply. - unset($this->id); - unset($this->uuid); unset($this->event); unset($this->site); unset($this->date); @@ -121,6 +99,13 @@ } /** + * Implements \Drupal\Core\Entity\EntityInterface::id(). + */ + public function id() { + return NULL; + } + + /** * Overrides \Drupal\entity\Entity::label(). */ public function label($langcode = LANGUAGE_DEFAULT) {