# Datenbankfehler No identifier/primary key specified for Entity

**URL:** <https://forum.shopware.com/t/datenbankfehler-no-identifier-primary-key-specified-for-entity/54483>\
**Category:** Programmierung\
**Created:** [7. August 2018 um 16:21 UTC](https://forum.shopware.com/t/datenbankfehler-no-identifier-primary-key-specified-for-entity/54483 "2018-08-07T16:21:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lobby](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/lobby/32/7864_2.png) [@lobby](https://forum.shopware.com/u/lobby)\
**Post date:** [7. August 2018 um 16:21 UTC](https://forum.shopware.com/t/datenbankfehler-no-identifier-primary-key-specified-for-entity/54483/1 "2018-08-07T16:21:31Z")

</div>

Ich wollte die Datenbank migrieren und bekomme jetzt diesen Fehler. Kann mir jemand einen Tipp geben, woich suchen muss:

**Fatal error** : Uncaught exception ‘Doctrine\ORM\Mapping\MappingException’ with message ‘No identifier/primary key specified for Entity “Shopware\Models\Attribute\Article” sub class of “Shopware\Components\Model\ModelEntity”. Every Entity must have an identifier/primary key.’ in /xxx/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:46 Stack trace: #0 /xxx/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1009): Doctrine\ORM\Mapping\MappingException::identifierRequired(‘Shopware\Models…’) #1 /xxx/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(271): Doctrine\ORM\Mapping\ClassMetadataInfo-\>validateIdentifier() #2 /xxx/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory-\>validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL) #3 /xxx/vendor in **/xxx/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php** on line **46**
