# Fehlermeldung ArrayEntity

**URL:** <https://forum.shopware.com/t/fehlermeldung-arrayentity/98548>\
**Category:** Shopware 6 (German)\
**Created:** [15. Februar 2023 um 12:04 UTC](https://forum.shopware.com/t/fehlermeldung-arrayentity/98548 "2023-02-15T12:04:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marius.wang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marius.wang/32/19708_2.png) [@marius.wang](https://forum.shopware.com/u/marius.wang)\
**Post date:** [15. Februar 2023 um 12:04 UTC](https://forum.shopware.com/t/fehlermeldung-arrayentity/98548/1 "2023-02-15T12:04:25Z")

</div>

Hallo 🙂  
Ich bin gerade bei der Erstellung eines Plugins und bekomme folgende Fehlermeldung. Habt ihr eine Idee woran das liegen könnte?

```auto
Expected collection element of type DiscountPlugin\Core\Content\DiscountPlugin\DiscountPluginEntity got Shopware\Core\Framework\Struct\ArrayEntity

```

Vielen Dank,  
Marius

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [15. Februar 2023 um 13:45 UTC](https://forum.shopware.com/t/fehlermeldung-arrayentity/98548/2 "2023-02-15T13:45:37Z")

</div>

Dein Code erwartet den Datentyp in Form der Klasse DiscountPluginEntity, hat aber ein ArrayEntity bekommen.

Du musst also dafür sorgen, dass an entsprechender Stelle ein ArrayEntity Datentyp zur Verfügung steht.
