Opened 10 years ago
Closed 10 years ago
#1903 closed defect (fixed)
Linking a new item to an existing AnyToAny is not possible in a single transaction
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | major | Milestone: | BASE 3.4 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
The link is made by type and id when the AnyToAny.setTo()
is called but the new item doesn't have any id at that time. If the AnyToAny
item is also new, the linking works since then it is delayed until the transaction is committed.
I would be good to create a test case for this.
Change History (3)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
(In [6675]) References #1903: Linking a new item to an existing AnyToAny is not possible in a single transaction
This seems to fix the issue. However, it is important that the new item is created and saved (DbControl.save()
) before the AnyToAny
link is loaded, since otherwise the id lookup will happen in the incorrect order.
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [6674]) References #1903: Linking a new item to an existing AnyToAny is not possible in a single transaction
Added test case (which currently fails).