hi group :)
the subject says it all. when I try to set a generic-reference-field
of a transient object to another transient object, I get this error
msg:
{{{
get:/ helma.scripting.ScriptingException: Wrapped
java.lang.RuntimeException: Object is transient, can't derive
persistent ID for Relation [dgf.Tag].target_id -> tag_f_target_id
}}}
the message makes it sound intentional, though I don't understand why
this doesn't.
Minimal test case with demo app [1] would be:
{{{
var image = new Image();
var tag = new Tag();
image.tags.add(tag); // error...
}}}
we're using more and more generic refs - so at least understanding why
this doesn't / can't work would be helpful.
bye
simon
[1]
http://dev.helma.org/bugs/show_bug.cgi?id=516