Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliaspooryorik/cd7b81f8a634827feaa8ebc8b8233ed6 to your computer and use it in GitHub Desktop.
Save aliaspooryorik/cd7b81f8a634827feaa8ebc8b8233ed6 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