I’m writing a program to manage orders and then print them.
An order is an object containing the ordering person, the date and the products this person orders. I’d like to add the amount of a certain product one orderer. E.g. 3 eggs, 2 breads.
Is there a simpler way doing this with storm (the ORM I’m using) than splitting the order into smaller pieces so that every order contains only 1 product?
What’s wrong with adding extra columns to the intersection table of the many-to-many relationship?
If you use an ORM that can’t access additional columns in this table while doing many-to-many queries, you should still be able to access it simply as a dependent table of either
productsorpersons.