# Many To Many relationship with data in the association table

**URL:** <https://forum.shopware.com/t/many-to-many-relationship-with-data-in-the-association-table/86686>\
**Category:** Programming (EN)\
**Created:** [6. April 2021 um 21:42 UTC](https://forum.shopware.com/t/many-to-many-relationship-with-data-in-the-association-table/86686 "2021-04-06T21:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miikro](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@Miikro](https://forum.shopware.com/u/Miikro)\
**Post date:** [6. April 2021 um 21:42 UTC](https://forum.shopware.com/t/many-to-many-relationship-with-data-in-the-association-table/86686/1 "2021-04-06T21:42:13Z")

</div>

Hi all,

I am trying to make a bundle plugin with the possibility to add a quantity of products in the bundle.

Bundle 1:  
Product 1 x X quantity  
Product 2 x Y quantity  
…

I have created a bundle table, an association table which contains the quantity field and extended the product entity.

When I am getting the bundle through the RepositoryFactory, I am getting the products attached but without the quantity field.

Any help most welcomed. If any more info needed just ask.

Thanks in advance
