tracker issue : CF-3000279

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

Error Object with id:{id} was not of the specified subclass: coldfusion.orm.PersistentTemplateProxy While loading an Entity

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Rupesh Kumar)

Created: 10/12/2011

Components: ORM Support

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha2 / 279352

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Mac 10 All,Win XP All

Vote Count: 1

If there is any difference in the case for CFC name used for the Entity and the one specified in the relationship Definition, it can cause this error.
Here is one repro case
Person.cfc (Note the case of the file)
<cfcomponent output="false" persistent="true" table="people">
	<cfproperty name="id" column="pid" generator="increment" ormtype="integer" type="numeric" >
	<cfproperty name="name" type="string" column="name">
	<cfproperty name="parent" fieldtype="many-to-one" fkcolumn="parent_id" cfc="person" update="false" lazy="true" >
	<cfproperty name="children" fieldtype="one-to-many" cfc="person" fkcolumn="parent_id" >

	<cfset = "selfreference">
	<cfset this.ormenabled = "true">
	<cfset this.datasource = "artgallery">	
	<cfset this.ormsettings.dbcreate = "dropcreate">

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

Watson Bug ID:	3000279

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:



This makes using ORM on a production site useless as the error randomly occurs and the application must be stopped/restarted for the error to go away and then it randomly creeps back up.
Vote by External U.
25019 | May 01, 2013 01:43:41 PM GMT
This is related to but case doesn't seem to be the issue for me.
Comment by External U.
25018 | May 01, 2013 02:12:14 PM GMT