rineIndiste
New Member
I need an example on how to operate on nested models.Let's assume, we have some order management application and models: Order, Position, Item.Order can contain Positions and Positions can contain Items.The question is: how to handle data selection?Some use cases that is needed:
- Get list of Orders with Positions andItems (like in my example code)
- Get only list of Orders (without Positions and Items)
- Get some statistics, for example, total amount of all Items in single Position