Task #1111 (closed)
Opened 15 years ago
Closed 12 years ago
Updating links doesn't always remove FK constraint
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | critical | Milestone: | Cleanup |
Component: | General | Version: | 3.0-M1 |
Keywords: | n.a. | Cc: | cxallan |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
In pseudocode:
link = obtainLink(); old_child = link.child; link.parent = new Something( link.parent.id, false ); link.child = new Otherthing( ); iupdate.saveObject(link); // The following *sometimes* throws a ValidationException // because the link still points at the old_child iupdate.deleteObject(old_child);
Change History (1)
comment:1 Changed 12 years ago by jmoore
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
I highly doubt this is still a problem, otherwise we would see these validation exceptions coming through. Closing without trying to reproduce something that happens "sometimes".