Personal I have 2 classes, one call Venda
and another ItensVenda
. I need to create a relationship for:
When I open a sale, I can see all the items in this sale.
When I access an item from a sale I can see the data from the Sale.
How do I create these relationships in Doctrine?
Class Venda
: id
, nome
, data
Class ItensVenda
: id
, nome
, valor
Thank you.