I have the following structure:
So Order --> Carton --> Shoe
When saving data to the database Order is fine, Carton is fine, but Shoe only gets the "carton_id" set correctly, "the order_id" is null. Is there any way to make this work?
Also when I want to list all the shoes belonging to a particular order (without using order_id) How can I find all shoes which belong to a carton which belongs to a specific order?