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

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

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

Viele Grüße

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;
    }
    
}