# How can I filter through an order using order version id on a order\_line\_item.repository

**URL:** <https://forum.shopware.com/t/how-can-i-filter-through-an-order-using-order-version-id-on-a-order-line-item-repository/100339>\
**Category:** Shopware 6 (English)\
**Tags:** programming\
**Created:** [1. Juli 2023 um 08:57 UTC](https://forum.shopware.com/t/how-can-i-filter-through-an-order-using-order-version-id-on-a-order-line-item-repository/100339 "2023-07-01T08:57:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolexx007](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@wolexx007](https://forum.shopware.com/u/wolexx007)\
**Post date:** [1. Juli 2023 um 08:57 UTC](https://forum.shopware.com/t/how-can-i-filter-through-an-order-using-order-version-id-on-a-order-line-item-repository/100339/1 "2023-07-01T08:57:30Z")

</div>

how can I get the items of an order in shopware 6.

I am using this

**argument type=„service“ id="order\_line\_item.repository**

in my services and then try to use the version id to query below

$orderLine = $this-\>orderLineItemRepository  
-\>search(new Criteria([$order-\>getVersionId()]), $event-\>getContext())  
-\>first();

it returns a blank, please help
