Filter pages with page model

Hey, I’ve made a shop with Merx. Now I want to display the corresponding orders for each product. I have a page model for this. But nothing is displayed.

My Code inside the Model:

public function orders(): Pages
    {
        /* All order pages */
        $pages = $kirby->collection('orders');

        /* Return filtered order pages */
        return $pages
            ->filter(fn (OrderPage $page) =>
            in_array($this->uuid()->toString(), $page->items()->toStructure()->pluck('id')));
    }

My Blueprint:

sections:
  orderPages:
    label: Bestellungen mit diesem Produkt
    type: pages
    query: page.orders
    create: false

You are plucking the structure item id, which is a default method and will give an ID of the structure item. But then you are comparing it to the UUID of the current page. So those should never match. Not sure what you are actually trying to compare.