# How do I access a Cart entity?

**URL:** <https://forum.shopware.com/t/how-do-i-access-a-cart-entity/61864>\
**Category:** Programming (EN)\
**Created:** [19. September 2019 um 13:04 UTC](https://forum.shopware.com/t/how-do-i-access-a-cart-entity/61864 "2019-09-19T13:04:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kairale](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@Kairale](https://forum.shopware.com/u/Kairale)\
**Post date:** [19. September 2019 um 13:04 UTC](https://forum.shopware.com/t/how-do-i-access-a-cart-entity/61864/1 "2019-09-19T13:04:35Z")

</div>

Hi! As I understand it for each table in the database exists \*\*Collection.php \*\*Entity.php \*\*Definition.php, and just through them the interaction with the database. I’m trying to create an entity to link product\_id and token (from the cart table). And I can’t understand where to find \* Collection.php \*\*Entity.php \*\*Definition.php, for the cart table.

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [19. September 2019 um 13:53 UTC](https://forum.shopware.com/t/how-do-i-access-a-cart-entity/61864/2 "2019-09-19T13:53:15Z")

</div>

Hi Kairale,

I will answer you on Gitter

Best regards from Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann
