# Update auf 5.6.7 bringtThe target-entity Shopware\\Models\\Attribute\\Voucher cannot be found in 'Shopw

**URL:** <https://forum.shopware.com/t/update-auf-5-6-7-bringtthe-target-entity-shopware-models-attribute-voucher-cannot-be-found-in-shopw/67724>\
**Category:** Programmierung\
**Created:** [17. Juni 2020 um 07:54 UTC](https://forum.shopware.com/t/update-auf-5-6-7-bringtthe-target-entity-shopware-models-attribute-voucher-cannot-be-found-in-shopw/67724 "2020-06-17T07:54:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kagerbauer](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kagerbauer](https://forum.shopware.com/u/kagerbauer)\
**Post date:** [17. Juni 2020 um 07:54 UTC](https://forum.shopware.com/t/update-auf-5-6-7-bringtthe-target-entity-shopware-models-attribute-voucher-cannot-be-found-in-shopw/67724/1 "2020-06-17T07:54:28Z")

</div>

Hallo,

mein heutiges Update bringt mir folgenden Fehler nach dem bereinigen des Cache.&nbsp;  
Die 3 Tabellen (s\_emarketing\_vouchers, s\_emarketing\_vouchers\_attributes, s\_emarketing\_voucher\_codes) sind vorhanden und der&nbsp;ForeignKey in&nbsp;s\_emarketing\_vouchers\_attributes&nbsp;ebenfalls. In verschiedenen Beiträgen wurde immer wieder auf die ForeignKeys hingewiesen.

Slim Application Error  
The application could not run because of the following error:

Details

**Type:** &nbsp;Doctrine\ORM\Mapping\MappingException

**Message:** &nbsp;The target-entity Shopware\Models\Attribute\Voucher cannot be found in ‘Shopware\Models\Voucher\Voucher#attribute’.

**File:** &nbsp;/html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php

**Line:** &nbsp;772

sw:generate:attributes oder clear\_cache.sh bringen beide die selber Fehler.

&nbsp;

Kann mir hier jemand einen Tipp geben?

Danke

```
 &nbsp;
```
