Hi,
How do I order entities to w/c should be saved first to the database?
Example I have a table named tblOrders that has a primary key of Order ID.
When I add 3 orders it will looks like this:
Order ID Column A Column B
- 100 Hello Hello Again
- 101 Hi Hi Again
- 102 H H Again
When I call the save method of the entity manager, what will happen is that the orders will be saved in reverse order.
Why is that so? and how do we save it in the order we want? In this case, we want it to be saved in the order we see it right now..
Thanks,
Von