Hello
I'm going to ask a question regarding DB Pointers.
I have 2 collections Order and OrderItem
In OrderItem i have a pointer to Order: http://puu.sh/dJ7T1/fb0821584e.png
The secuence goes like this
1) An order is made: http://puu.sh/dJ8b4/94ac01f44e.png
2) Items are added to the database (pointing the order created): http://puu.sh/dJ89G/f5c37fa937.png
My question is how to retrieve all the items from the current Order.
This is my request: http://puu.sh/dJ8mo/dfbaec8704.png
Even when i test it seems to be ok: http://puu.sh/dJ8iJ/26ca654841.png
I'm trying to send the Order ID to the where field : http://puu.sh/dJ8rR/3753731de2.png
But i get this message on the console: http://puu.sh/dJ8w4/f6fb1c21ac.png
I need to know how to make the mapping to get the Order ID to the where statment.
I hope the explanation of the problem it's clear. If not, please ask as many questions you need.
Thanks.