Created
April 8, 2016 09:35
-
-
Save davidsf/b54168fd278f1871010b386329cea329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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