summaryrefslogtreecommitdiff
path: root/includes/entity.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/entity.inc')
-rw-r--r--includes/entity.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/entity.inc b/includes/entity.inc
index d4d19e6a2..4b6058b75 100644
--- a/includes/entity.inc
+++ b/includes/entity.inc
@@ -64,11 +64,11 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface {
$this->entityInfo = entity_get_info($entityType);
$this->entityCache = array();
$this->hookLoadArguments = array();
- $this->idKey = $this->entityInfo['object keys']['id'];
+ $this->idKey = $this->entityInfo['entity keys']['id'];
// Check if the entity type supports revisions.
- if (!empty($this->entityInfo['object keys']['revision'])) {
- $this->revisionKey = $this->entityInfo['object keys']['revision'];
+ if (!empty($this->entityInfo['entity keys']['revision'])) {
+ $this->revisionKey = $this->entityInfo['entity keys']['revision'];
$this->revisionTable = $this->entityInfo['revision table'];
}
else {