# Update 5.5.7   The target-entity Shopware\\Models\\Attribute\\Shop cannot be found in 'Shopware\\Models\\

**URL:** <https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988>\
**Category:** Programmierung\
**Created:** [8. April 2019 um 14:28 UTC](https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988 "2019-04-08T14:28:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.shopware.com/u/Maha)\
**Post date:** [8. April 2019 um 14:28 UTC](https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988/1 "2019-04-08T14:28:44Z")

</div>

Hallo,

ich deploye shopware update und vor&nbsp;sw:plugin:refresh und sw:plugin:update kommt diese Exception und lässt &nbsp;nicht die Plugin&nbsp;updatet&nbsp;…

**In MappingException.php line 762:  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp; The target-entity Shopware\Models\Attribute\Shop cannot be found in ‘Shopware\Models\Shop\Shop#attribute’. &nbsp;**

ich habe auch sw:generate:attributes vor&nbsp;sw:plugin:refresh geschrieben und hat nicht funktioniert.

hat Jemand eine Idee?

&nbsp;

Danke

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [8. April 2019 um 14:46 UTC](https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988/2 "2019-04-08T14:46:09Z")

</div>

Cache vorher mal gelöscht und Models neu generiert?

---

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.shopware.com/u/Maha)\
**Post date:** [9. April 2019 um 08:17 UTC](https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988/3 "2019-04-09T08:17:33Z")

</div>

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

```
 /var/www/shopware/bin/console --no-ansi sw:cache:clear /var/www/shopware/bin/console --no-ansi sw:theme:cache:generate /var/www/shopware/bin/console --no-ansi sw:generate:attributes /var/www/shopware/bin/console --no-ansi sw:plugin:refresh /var/www/shopware/bin/console --no-ansi sw:plugin:update --batch=active

```

error at plugin update

In MappingException.php line 762:  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp; The target-entity Shopware\Models\Attribute\Shop cannot be found in ‘Shopwa &nbsp;  
&nbsp; re\Models\Shop\Shop#attribute’. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

---

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.shopware.com/u/Maha)\
**Post date:** [9. April 2019 um 10:17 UTC](https://forum.shopware.com/t/update-5-5-7-the-target-entity-shopware-models-attribute-shop-cannot-be-found-in-shopware-models/58988/4 "2019-04-09T10:17:10Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍ es hat funktioniert… Man muss cache vorher und nachher&nbsp;generate attributes machen. Danke.&nbsp;
