Skip to content

Commit

Permalink
mapper: readded back auto mapping of primary key
Browse files Browse the repository at this point in the history
reverts: c20d1a8
  • Loading branch information
hrach committed Jan 3, 2016
1 parent f401084 commit e2d85ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mapper/Dbal/StorageReflection/StorageReflection.php
Expand Up @@ -297,6 +297,10 @@ private function getDefaultMappings()
);
}

if (count($primaryKey) === 1) {
$this->addMapping($this->entityPrimaryKey[0], $primaryKey[0]);
}

return [$this->mappings, $this->modifiers];
});
}
Expand Down

0 comments on commit e2d85ab

Please sign in to comment.