I'm very new to Doctrine/Symfony and I'm pulling my hair because I can't get how to do this.
I have two tables related by one foreign key.
Product: id, name, stock
Order: id, date, productId, quantity, sent
I can get all the orders of one product with $produt->getOrders()
but I'd like to get Only those which are pending to sent.
How should I do it?.
Thanks.