# 5.5.1 - \[Semantical Error\] The annotation "@ORM\\Entity" in class Shopware\\Models\\Attribute\\Payment

**URL:** <https://forum.shopware.com/t/5-5-1-semantical-error-the-annotation-orm-entity-in-class-shopware-models-attribute-payment/55820>\
**Category:** Programmierung\
**Created:** [18. Oktober 2018 um 09:31 UTC](https://forum.shopware.com/t/5-5-1-semantical-error-the-annotation-orm-entity-in-class-shopware-models-attribute-payment/55820 "2018-10-18T09:31:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![7thsense\_sebastian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/7thsense_sebastian/32/16530_2.png) [@7thsense\_sebastian](https://forum.shopware.com/u/7thsense_sebastian)\
**Post date:** [18. Oktober 2018 um 09:31 UTC](https://forum.shopware.com/t/5-5-1-semantical-error-the-annotation-orm-entity-in-class-shopware-models-attribute-payment/55820/1 "2018-10-18T09:31:10Z")

</div>

Hallo Shopware,

ich bekomme in unregelmäßigen Abständen beim Setup den folgenden Fehler:

```
In AnnotationException.php line 54:

  [Semantical Error] The annotation "@ORM\Entity" in class Shopware\Models\Attribute\Payment was
   never imported. Did you maybe forget to add a "use" statement for this annotation?

```

Ist dieser Fehler bekannt? Er lässt sich beheben, indem das Verzeichnis var/cache/…/doctrine gelöscht wird. Aber das kann ja nicht ganz im Sinne des Erfinders sein.

Mache ich etwas falsch? Oder liegt der Fehler tiefer begraben?

Viele Grüße Sebastian

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [18. Oktober 2018 um 09:49 UTC](https://forum.shopware.com/t/5-5-1-semantical-error-the-annotation-orm-entity-in-class-shopware-models-attribute-payment/55820/2 "2018-10-18T09:49:35Z")

</div>

Zeig doch mal die komplette, generierte Klasse des Attributs aus dem cache.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![7thsense\_sebastian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/7thsense_sebastian/32/16530_2.png) [@7thsense\_sebastian](https://forum.shopware.com/u/7thsense_sebastian)\
**Post date:** [18. Oktober 2018 um 10:42 UTC](https://forum.shopware.com/t/5-5-1-semantical-error-the-annotation-orm-entity-in-class-shopware-models-attribute-payment/55820/3 "2018-10-18T10:42:08Z")

</div>

Hi Eike,

vielen Dank für die Antwort. Das kann ich schon machen. Es handelt sich allerdings um ein Shopware ohne Plugins, etc. Wir sind gerade erst am Anfang.

```
id;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }
    

    public function getPaymentId()
    {
        return $this->paymentId;
    }

    public function setPaymentId($paymentId)
    {
        $this->paymentId = $paymentId;
        return $this;
    }
    

    public function getPayment()
    {
        return $this->payment;
    }

    public function setPayment($payment)
    {
        $this->payment = $payment;
        return $this;
    }
    
}

```

&nbsp;
