# ManyToOne mit Suchfeld

**URL:** https://forum.shopware.com/t/manytoone-mit-suchfeld/39953
**Category:** Programmierung
**Created:** [20. September 2016 um 07:00 UTC](https://forum.shopware.com/t/manytoone-mit-suchfeld/39953 "2016-09-20T07:00:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Beyer](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Beyer](https://forum.shopware.com/u/Beyer)
#### Post date: [20. September 2016 um 07:00 UTC](https://forum.shopware.com/t/manytoone-mit-suchfeld/39953/1 "2016-09-20T07:00:49Z")

</div>

Hallo,

folgende Konstelation:

Ich habe eine ManyToOne relation zwischen meiner custom Tabelle und Article details.  
Sprich in meiner Custom Tabelle befindet sich die detail\_id als fk.

[https://developers.shopware.com/developers-guide/backend-components/associations/?\_ga=1.217926292.320870384.1441106219#manytoone-associations—product](https://developers.shopware.com/developers-guide/backend-components/associations/?_ga=1.217926292.320870384.1441106219#manytoone-associations---product)

Diese Anleitung war sehr sehr hilfreich aber löst mein Problem leider nicht ganz, da die combobox zu klein für Artikelvarianten ist.  
Ich brauche ein Suchfeld + Paginagion da Varianten doch sehr schnell sehr viele werden können.

Sprich das Ergebnis soll aussehen wie eine ManyToMany mit Suche und Pagination nur, dass max. eins ausgewählt werden kann.

[https://developers.shopware.com/developers-guide/backend-components/associations/?\_ga=1.217926292.320870384.1441106219#manytomany-associations—produc](https://developers.shopware.com/developers-guide/backend-components/associations/?_ga=1.217926292.320870384.1441106219#manytomany-associations---produc)

Kann mir jemand sagen, wie ich dies hin bekomme, ohne eine ManyToMany relation definieren zu müssen?

Danke für jeden Tipp =)

---

<div class="post-metadata">

### Author: ![Beyer](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Beyer](https://forum.shopware.com/u/Beyer)
#### Post date: [21. September 2016 um 08:44 UTC](https://forum.shopware.com/t/manytoone-mit-suchfeld/39953/2 "2016-09-21T08:44:11Z")

</div>

Keiner einen Tipp?&nbsp;

Ist eig. kein seltener Fall, dass eine einfache Combobox nicht ausreicht oder?
