# API tools HAL Entity metadata map for multiple identifiers

**URL:** <https://discourse.laminas.dev/t/api-tools-hal-entity-metadata-map-for-multiple-identifiers/2486>\
**Category:** API Tools\
**Created:** [September 2, 2021, 6:03pm UTC](https://discourse.laminas.dev/t/api-tools-hal-entity-metadata-map-for-multiple-identifiers/2486 "2021-09-02T18:03:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlx](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vlx](https://discourse.laminas.dev/u/vlx)\
**Post date:** [September 2, 2021, 6:03pm UTC](https://discourse.laminas.dev/t/api-tools-hal-entity-metadata-map-for-multiple-identifiers/2486/1 "2021-09-02T18:03:26Z")

</div>

Please is there a way to configure metadata map with api tools hal so that it accepts two entity identifiers?  
I have endpoint in form of /api/sellers/[:seller\_id]/tickets[/:ticket\_id]

I use Entity Ticket which as enitity identifier ticketid mapped by route identifier ticket\_id.  
The Ticket Entity has related entity (Doctrine ORM) Seller which has entity identifier sellerid mapped by route identifier seller\_id

Is there a way to configure this with metadatamap? I would like to get both tickets and sellers within one request. Limiting the maxDepth is not really a solution. Or custom Hydrator is the only way?

Thank you.
