Wartungsmodus

Hallo

ich erhalte folgende Fehlermeldung nach update auf 5.2.12:

No identifier/primary key specified for Entity „Shopware\Models\Attribute\User“ sub class of „Shopware\Components\Model\ModelEntity“. Every Entity must have an identifier/primary key.

Wie kann ich diesen Fehler beheben?

 

Klingt nach einem Foreign Key Problem. Schau mal im Wiki da gibt es eine Anleitung zur Reparatur. Danach noch den Cache auf dem Server löschen.

@Moritz Naczenski schrieb:

Klingt nach einem Foreign Key Problem. Schau mal im Wiki da gibt es eine Anleitung zur Reparatur. Danach noch den Cache auf dem Server löschen.

Ich habe deinen Rat befolgt doch leider ohne erfolg.

Vielleicht sagt dir folgende Meldung mehr:

Slim Application Error

The application could not run because of the following error:

Details

Type:  Doctrine\ORM\Mapping\MappingException

Message:  No identifier/primary key specified for Entity „Shopware\Models\Attribute\User“ sub class of „Shopware\Components\Model\ModelEntity“. Every Entity must have an identifier/primary key.

File:  /home/www/web120/html/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php

Line:  46

Trace

 #0 /home/www/web120/html/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1004): Doctrine\ORM\Mapping\MappingException::identifierRequired('Shopware\\Models...') 

#1 /home/www/web120/html/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(271): Doctrine\ORM\Mapping\ClassMetadataInfo->validateIdentifier()#2 /home/www/web120/html/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL)#3 /home/www/web120/html/shop/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(332): Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)#4 /home/www/web120/html/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(78): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata(‚Shopware\Models…‘)#5 /home/www/web120/html/shop/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(216): Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata(‚Shopware\Models…‘)#6 /home/www/web120/html/shop/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(115): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor(‚Shopware\Models…‘)#7 /home/www/web120/html/shop/engine/Shopware/Components/Model/ModelManager.php(263): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()#8 /home/www/web120/html/shop/engine/Shopware/Components/Model/ModelManager.php(247): Shopware\Components\Model\ModelManager->regenerateAttributeProxies(Array)#9 /home/www/web120/html/shop/engine/Shopware/Components/DependencyInjection/Bridge/Models.php(93): Shopware\Components\Model\ModelManager->generateAttributeModels()#10 /home/www/web120/html/shop/engine/Shopware/Components/DependencyInjection/Bridge/Models.php(81): Shopware\Components\DependencyInjection\Bridge\Models->generateAttributeModels(Object(Shopware\Components\Model\ModelManager))#11 /home/www/web120/html/shop/var/cache/production_201611281529/proxies/ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(598): Shopware\Components\DependencyInjection\Bridge\Models->factory(Object(Doctrine\Common\EventManager), Object(Shopware\Components\Model\Configuration), Object(Enlight_Loader), Object(Doctrine\DBAL\Connection), Object(Doctrine\ORM\Mapping\Driver\AnnotationDriver))#12 /home/www/web120/html/shop/vendor/symfony/dependency-injection/Container.php(314): ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer->getModelsService()#13 /home/www/web120/html/shop/engine/Shopware/Components/DependencyInjection/Container.php(182): Symfony\Component\DependencyInjection\Container->get(‚models‘, 1)#14 /home/www/web120/html/shop/engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad(‚models‘, 1)#15 /home/www/web120/html/shop/recovery/update/src/DependencyInjection/Container.php(178): Shopware\Components\DependencyInjection\Container->get(‚models‘)#16 /home/www/web120/html/shop/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))#17 /home/www/web120/html/shop/recovery/update/src/DependencyInjection/Container.php(184): Pimple\Container->offsetGet(‚shopware.contai…‘)#18 /home/www/web120/html/shop/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))#19 /home/www/web120/html/shop/recovery/common/src/DependencyInjection/Container.php(80): Pimple\Container->offsetGet(‚shopware.theme_…‘)#20 /home/www/web120/html/shop/recovery/update/src/app.php(167): Shopware\Recovery\Common\DependencyInjection\Container->get(‚shopware.theme_…‘)#21 [internal function]: {closure}()#22 /home/www/web120/html/shop/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)#23 /home/www/web120/html/shop/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()#24 /home/www/web120/html/shop/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()#25 /home/www/web120/html/shop/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()#26 /home/www/web120/html/shop/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()#27 /home/www/web120/html/shop/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()#28 /home/www/web120/html/shop/recovery/update/index.php(46): Slim\Slim->run()

#29 {main}