http://helma.org/bugs/show_bug.cgi?id=607 Summary: ID of transient object is 0 after becoming persistent
Product: Helma
Version: CVS trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P1
Component: HopObject Functionality
AssignedTo:
helma-dev@...
ReportedBy:
tobias.schaefer@...
Setting a property to a transient object leads to a "0" entry in the database
although the object is being made persistent during the same request:
var foo = new Foo;
var bar = new Bar;
bar.foo = foo; // bar.foo === 0
root.bars.add(bar);
root.foos.add(foo);
//bar.foo = foo;
Removing the comment signs from the last line enables a work-around. However,
there are some situations where this simply is not reasonable.
Moreover, I wonder if this bug was introduced lately because it happens in code
I did not touch for quite a while. (But I am not really sure.)
I can provide a test case if wanted.
--
Configure bugmail:
http://helma.org/bugs/userprefs.cgi?tab=email------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev