# Gelöst: Nach Update auf 5.1.5 - Fatal error: Uncaught exception 'BadMethodCallException'

**URL:** <https://forum.shopware.com/t/gelost-nach-update-auf-5-1-5-fatal-error-uncaught-exception-badmethodcallexception/36491>\
**Category:** Allgemein\
**Created:** [2. Mai 2016 um 11:51 UTC](https://forum.shopware.com/t/gelost-nach-update-auf-5-1-5-fatal-error-uncaught-exception-badmethodcallexception/36491 "2016-05-02T11:51:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulltimeSW](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@fulltimeSW](https://forum.shopware.com/u/fulltimeSW)\
**Post date:** [2. Mai 2016 um 11:51 UTC](https://forum.shopware.com/t/gelost-nach-update-auf-5-1-5-fatal-error-uncaught-exception-badmethodcallexception/36491/1 "2016-05-02T11:51:55Z")

</div>

Hallo,

ich habe ein riesen Problem. Nach dem Update auf 5.1.5 kommt man nicht mehr in den Warenkorb und erhält folgenden Fehler.

Veruscht habe ich bereits&nbsp;repairforeignkeys ohne Erfolg.

**Fatal error** : Uncaught exception ‘BadMethodCallException’ with message ‘Type of association must be one of \*\_TO\_ONE or MANY\_TO\_MANY’ in /kunden/429463\_28832/webseiten/domain/vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php:1028 Stack trace: #0 /kunden/429463\_28832/webseiten/domain/vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(1155): Doctrine\ORM\Query\SqlWalker-\>walkJoinAssociationDeclaration(Object(Doctrine\ORM\Query\AST\JoinAssociationDeclaration), 1, NULL) #1 /kunden/429463\_28832/webseiten/domain/vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(837): Doctrine\ORM\Query\SqlWalker-\>walkJoin(Object(Doctrine\ORM\Query\AST\Join)) #2 /kunden/429463\_28832/webseiten/domain/vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php(815): Doctrine\ORM\Query\SqlWalker-\>walkIdentificationVariableDeclaration(Object(Doctrine\ORM\Query\AST\IdentificationVariableDeclaration)) #3 /kunden/429463\_28832/webseiten/domain/vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php in&nbsp; **/kunden/429463\_28832/webseiten** /domain **/vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php** &nbsp;on line&nbsp; **1028**

&nbsp;

Hat jemand daz eine Idee oder sogar eine Lösung?

&nbsp;

---

<div class="post-metadata">

**Author:** ![fulltimeSW](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@fulltimeSW](https://forum.shopware.com/u/fulltimeSW)\
**Post date:** [2. Mai 2016 um 12:02 UTC](https://forum.shopware.com/t/gelost-nach-update-auf-5-1-5-fatal-error-uncaught-exception-badmethodcallexception/36491/2 "2016-05-02T12:02:16Z")

</div>

So also nach dem ich den Cache im Backend von Produktiv auf Bearbeitungsmodus gestellt und den Cache ordner gelöscht habe, funktionierte auf einmal wieder alles. Selbst nachdem ich wieder auf Produtivmodus gestellt habe, läuft alles wieder sauber.
