# attribute multi\_select ohne model möglich?

**URL:** <https://forum.shopware.com/t/attribute-multi-select-ohne-model-moglich/64828>\
**Category:** Programmierung\
**Created:** [19. Februar 2020 um 10:23 UTC](https://forum.shopware.com/t/attribute-multi-select-ohne-model-moglich/64828 "2020-02-19T10:23:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonic](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sonic/32/25728_2.png) [@sonic](https://forum.shopware.com/u/sonic)\
**Post date:** [19. Februar 2020 um 10:23 UTC](https://forum.shopware.com/t/attribute-multi-select-ohne-model-moglich/64828/1 "2020-02-19T10:23:05Z")

</div>

Moin,

für die Auswahl einiger “Optionen” benötige ich im Artikelstamm ein Freitext als “multi\_select” (ich könnte auch unzählige Attribute anlegen, das mach die Sache aber auch nicht besser).  
Nun muss ich dem Freitext-entity ein model übergeben:  
[https://developers.shopware.com/developers-guide/attribute-system/#add-your-own-entities-to-single-and-multi-selection](https://developers.shopware.com/developers-guide/attribute-system/#add-your-own-entities-to-single-and-multi-selection)  
Es sollen lediglich ein paar wenige Werte sein, die fest vom Plugin vorgegeben werden, und für vielleicht später mal 5 Werte - die konstant sind - möchte ich nicht wirklich eine Tabelle anlegen.

Hat hier ggf. jemand einen Tipp, wie ich ein Array als “Model” anlegen kann? Die Suche mit Doctrine/ORM hat mir bisher nicht geholfen.

Also eigentlich möchte ich dem “multi\_select” so eine Art Array “[[id =\> 0, value =\> 1,&nbsp;lable =\> “Option 1”], … , [id =\> 5,&nbsp; value =\> 16, lable =\> “Option 5”]]” mitgeben. Das muss doch auch ohne Tabelle gehen&nbsp; ![Wink](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/b3785da0cbf2c8566cb535dcf55b2730b5224899.png "Wink")

Ich bräuchte mal einen kleinen Denkanstoß  
\*THX\*
