Fehler beim Speichern (Foreign Keys) Fk can not be detected

Hallo, 

Wenn ich neue Variantenbilder hinzufüge und speichere, bekomme ich eine Fehlermeldung. „xxxx ist ein Fehler aufgetreten“

Browser Meldung: Fk can not be detected 

Response: 

{"errors":[{"code":"0","status":"500","title":"Internal Server Error","detail":"Fk can not be detected","meta":{"trace":[{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/DataAbstractionLayer\/VersionManager.php","line":855,"function":"fetchForeignKey","class":"Shopware\\Core\\Framework\\DataAbstractionLayer\\VersionManager","type":"-\u003E","args":[{},{"id":"4ea43ee6e27c4f2b9ccd4e5d163cc1df"},{"storageName":"product_id","referenceClass":"Shopware\\Core\\Content\\Product\\ProductDefinition","referenceDefinition":{},"referenceField":"id","flags":[{}],"propertyName":"productId","extensions":[]}]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/DataAbstractionLayer\/VersionManager.php","line":754,"function":"getPrimaryKeysOfFkField","class":"Shopware\\Core\\Framework\\DataAbstractionLayer\\VersionManager","type":"-\u003E","args":[{},[{"id":"4ea43ee6e27c4f2b9ccd4e5d163cc1df"}],{"storageName":"product_id","referenceClass":"Shopware\\Core\\Content\\Product\\ProductDefinition","referenceDefinition":{},"referenceField":"id","flags":[{}],"propertyName":"productId","extensions":[]}]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/DataAbstractionLayer\/VersionManager.php","line":176,"function":"resolveParents","class":"Shopware\\Core\\Framework\\DataAbstractionLayer\\VersionManager","type":"-\u003E","args":[{},[{"id":"4ea43ee6e27c4f2b9ccd4e5d163cc1df"}]]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/DataAbstractionLayer\/EntityRepository.php","line":179,"function":"delete","class":"Shopware\\Core\\Framework\\DataAbstractionLayer\\VersionManager","type":"-\u003E","args":[{},[{"id":"4ea43ee6e27c4f2b9ccd4e5d163cc1df"}],{}]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/Api\/Controller\/ApiController.php","line":883,"function":"delete","class":"Shopware\\Core\\Framework\\DataAbstractionLayer\\EntityRepository","type":"-\u003E","args":[[{"id":"4ea43ee6e27c4f2b9ccd4e5d163cc1df"}],{"languageIdChain":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"versionId":"0fa91ce3e96a4bc2be4bd9ce752c3425","currencyId":"b7d2554b0ce847cd82f3ac9bd1c0dfca","currencyFactor":1,"currencyPrecision":2,"scope":"crud","ruleIds":[],"source":{},"considerInheritance":false,"taxState":"gross","extensions":[]}]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/Context.php","line":182,"function":"Shopware\\Core\\Framework\\Api\\Controller\\{closure}","class":"Shopware\\Core\\Framework\\Api\\Controller\\ApiController","type":"-\u003E","args":[{"languageIdChain":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"versionId":"0fa91ce3e96a4bc2be4bd9ce752c3425","currencyId":"b7d2554b0ce847cd82f3ac9bd1c0dfca","currencyFactor":1,"currencyPrecision":2,"scope":"crud","ruleIds":[],"source":{},"considerInheritance":false,"taxState":"gross","extensions":[]}]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/Api\/Controller\/ApiController.php","line":893,"function":"scope","class":"Shopware\\Core\\Framework\\Context","type":"-\u003E","args":["crud",{}]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/Api\/Controller\/ApiController.php","line":532,"function":"executeWriteOperation","class":"Shopware\\Core\\Framework\\Api\\Controller\\ApiController","type":"-\u003E","args":[{},{"id":"4ea43ee6e27c4f2b9ccd4e5d163cc1df"},{"languageIdChain":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"versionId":"0fa91ce3e96a4bc2be4bd9ce752c3425","currencyId":"b7d2554b0ce847cd82f3ac9bd1c0dfca","currencyFactor":1,"currencyPrecision":2,"scope":"crud","ruleIds":[],"source":{},"considerInheritance":false,"taxState":"gross","extensions":[]},"delete",2]},{"file":"\/html\/shopware\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":146,"function":"delete","class":"Shopware\\Core\\Framework\\Api\\Controller\\ApiController","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{"languageIdChain":["2fbb5fe2e29a4d70aa5854ce7ce3e20b"],"versionId":"0fa91ce3e96a4bc2be4bd9ce752c3425","currencyId":"b7d2554b0ce847cd82f3ac9bd1c0dfca","currencyFactor":1,"currencyPrecision":2,"scope":"crud","ruleIds":[],"source":{},"considerInheritance":false,"taxState":"gross","extensions":[]},{},"product","93148fd6c45448a7b0220548027b951e\/media\/4ea43ee6e27c4f2b9ccd4e5d163cc1df"]},{"file":"\/html\/shopware\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":68,"function":"handleRaw","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1]},{"file":"\/html\/shopware\/vendor\/symfony\/http-kernel\/Kernel.php","line":201,"function":"handle","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/HttpKernel.php","line":148,"function":"handle","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/html\/shopware\/vendor\/shopware\/core\/HttpKernel.php","line":77,"function":"doHandle","class":"Shopware\\Core\\HttpKernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/html\/shopware\/public\/index.php","line":83,"function":"handle","class":"Shopware\\Core\\HttpKernel","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]}],"file":"\/html\/shopware\/vendor\/shopware\/core\/Framework\/DataAbstractionLayer\/VersionManager.php","line":829}}]}

Es gibt glaube ich Probleme bei Foreign Keys nach dem Update auf 6.2 

Gibt es vielleicht Foreign Keys Reparatur für Shopware 6 ? In der Anleitung habe ich nichts gefunden.

Diese Fehlermeldung kommt nur bei bestehende Bilder, wenn ich neue Bilder hochlade, dann klappt das.

Issue Link: https://issues.shopware.com/issues/NEXT-8904

*UPDATE: bei 6.2.1 haben wir das Problem auch. 

[@Moritz Naczenski](http://forum.shopware.com/profile/14574/Moritz Naczenski “Moritz Naczenski”)‍

*UPDATE: 6.2.2 auch !! 

!! UPDATE 6.4.0.0 auch !!

ich habe denselben fehler. gibt es hier schon vllt eine lösung?