tracker issue : CF-3039960

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

Bug 79862:In the documentation Developing Applications, p

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rob Kolosky / Rob Kolosky (rkolosky)

Created: 09/09/2009

Components: Documentation, Examples

Versions: 9.0

Failure Type: Unspecified

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

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 0


In the documentation Developing Applications, p. 574, it says  for preDelete() "The delete operation is vetoed if this method returns true."This doesn't appear to work.

Application.cfc:<cfscript>this.ormsettings.ormenabled=true;this.ormsettings.datasource=<datasource>;this.ormsettings.eventhandling=true;</cfscript>MyCFC.cfc<cfcompnent persistent="true"><cfproperty name="ID" fieldtype="id" generator="identity" /><cfproperty name="myStuff" /><cffunction name="preDelete"><cfreturn true /></cffunction>index.cfm:<cfset stuff = new MyStuff() /><cfset stuff.setMyStuff("Foo") /><cfset entitySave(stuff) /><cfset ormFlush() /><!--- Added to the database ---><cfset retreievedStuff = entityLoad("Stuff",1,true) /><cfset entityDelete(retreivedStuff) /><!--- Deleted from the database, even though preDelete returned true --->

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

Watson Bug ID:	3039960

External Customer Info:
External Company:  
External Customer Name: Rob Kolosky
External Customer Email: 0D63608F448DC27599201549
External Test Config: 09/09/2009