From: F. G. <fg...@da...> - 2001-06-27 12:35:25
|
I've to mention first that I'm still working with 0.5.1rc#3, so probably this is no more an issue. Or I simply do not understand things right. If the latter is true, please advice. 1) I have an SiOrder object, which contains a list of SiOrderItem objects. SiOrderItem must have an attribute siOrder of type SiOrder. Otherwise SiOrder::addToSiOrderItem() will not work (assertion failure). So it has it. 2) There are already several SiOrder objects stored in the database (table 'SiOrder') and so are SiOrderItem objects (table 'SiOrderItem'). 3) Now I create an SiOrder object and add a single SiOrderItem object: order = SiOrder() order.addToSiOrderItems(SiOrderItem()) Then I save this to the db. 4) Then I query the order's order items, which should yield the one single SiOrderItem object I just added to it. 5) But surprise: I get *all* SiOrderItem objects I ever added to any SiOrder object. 6) When I look into the database directly I see, that all entries of the SiOrderItem table do have the *same* siOrderId. Is this behavior as expected? Regards Franz P.S.: Webware 0.5.1.rc3, MySQL, NT4. It does not matter if I use OneShot or the servers. |