Skip to content

Instantly share code, notes, and snippets.

@davidsf
Created April 8, 2016 09:35
Show Gist options
  • Save davidsf/b54168fd278f1871010b386329cea329 to your computer and use it in GitHub Desktop.
Save davidsf/b54168fd278f1871010b386329cea329 to your computer and use it in GitHub Desktop.
// ORMSettings: flushatrequestend = false, automanagesession = false
// No errors, just obj.myprop not populate to db:
obj = cacheget(tag);
entityMerge(obj);
transaction {
obj.myprop = 'example';
}
// Just for testing...
// Error: a different object with the same identifier value was already associated with the session
obj = cacheget(tag);
entityMerge(obj);
transaction {
obj.myprop = 'example';
entitySave(obj);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment