I have a collection of Customer that have multiple Order.
The Order is an embedded array in the Customer collection.
Inside one Order there is an @ReferencedMany to the Product collection.
I now want to do some reporting on every Product that a Customer has ever bought.
What would be the MongoDB way to find all the products for this customer and add filters on this query. I don't want to loop every order and then fetch all the products and put them in a Doctrine ArrayCollection.
Is there a direct way to query these products?