tracker issue : CF-3040336

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 80443:No ORM Operations are submitted to database if they are executed in the application

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Thomas Wieser / Thomas Wieser (wiesion)

Created: 10/21/2009

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,0,241018 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

No ORM Operations are submitted to database if they are executed in the application.cfc onApplicationStart() method.I wanted to insert some dummy data on application start for testing reasons. Even with ORMFlush() after this operations the entities wont be submitted to the database, but if i dump out the entities they look like everything is ok and even ColdFusion doesn't give me an error.
Method:

in application.cfc:[...]<cfset this.ormEnabled = true /><cfset this.ormSettings.dialect = "MicrosoftSQLServer" /><cfset this.ormSettings.dbCreate = "dropCreate" /><cfset this.ormSettings.dataSource = "datasource" />[...]<cffunction name="onApplicationStart" [...] >[...]  <cfset person = new model.people() />  <cfset person.setName("Example") />  <cfset entitySave(person) />  <cfset ormFlush() />[...]</cffunction>
Result:

(No error message)

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3040336

External Customer Info:
External Company:  
External Customer Name: Thomas Wieser
External Customer Email: 4BD86F144ADF07C699201549
External Test Config: 10/21/2009

Attachments:

Comments: