Title:
Bug 86783:(Watson Migration Closure)When you rollback a transaction the current ORM session is not cleared as stated in the docs
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Sumit Verma / SUMIT VERMA (Sumit Verma)
Created: 04/04/2011
Components: ORM Support
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 5
Problem:
When you rollback a transaction the current ORM session is not cleared as stated in the docs. After rollback, using a transaction causes the rolledback transaction to get persisted.Here is google group discussion:http://groups.google.com/group/cf-orm-dev/browse_thread/thread/cb75e7adefae28cd?hl=en
Method:
<cfset txn = ormGetSession().beginTransaction() /> <cfset data = entityload("foo",1,true) /> <cfset data.setname("bar") /> <cfset txn.rollback() /> <!--- somewhere before the end of request ---> <cftransaction /> This will still persist the data.
Result:
When transaction is rolled back the current orm session is not cleared.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3043690
External Customer Info:
External Company:
External Customer Name: SUMIT VERMA
External Customer Email: 127A13044B7B54A3992015C2
External Test Config: 04/04/2011
Attachments:
Comments: