I'm experiencing an extremely weird issue that start cropping up last week
and seems to be spreading throughout all my projects on CF6.1 where CF8
seems to be unaffected. When I first generate reactor (clear out the
reactor/project) folder it works fine and finds the hasOne relationship.
Even in production mode, when I use the relationship and execute a save on
the object, it comes back and looses the relationship, therefore I get an
error.
I'm not sure if this list allows attachments so here are the relative paths
in the file (I can send whole file if that would help)
When initially cleared:
<!--- image_id --->
<cffunction name="setimage_id" hint="I set the image_id value
and reset related objects." access="public" output="false"
returntype="void">
<cfargument name="image_id" hint="I am this record's
image_id value." required="yes" type="any" _type="string" />
<!--- if the value passed in is different that the
current value, reset the valeus in this record --->
<cfif arguments.image_id IS NOT getimage_id()>
<cfset _getTo().image_id = arguments.image_id />
<cfif StructKeyExists(variables.children,
"client_image") AND IsObject(variables.children.client_image)>
<cfset
variables.children.client_image.resetParent() />
</cfif>
<cfset variables.children.client_image = 0
/>
<!--- load the correct record
<cfset getclient_image() /> --->
</cfif>
</cffunction>
<!--- also generates the corresponding client_image record --->
Now when I execute the save on the record, the file is:
<!--- image_id --->
<cffunction name="setimage_id" hint="I set the image_id value ."
access="public" output="false" returntype="void">
<cfargument name="image_id" hint="I am this record's
image_id value." required="yes" type="any" _type="string" />
<cfset _getTo().image_id = arguments.image_id />
</cffunction>
I have the following relationship defined:
<object name="ecomm_item" >
<hasOne name="client_image">
<relate from="image_id" to="id" />
</hasOne>
</object>
<!---have tried to define the client_image relationship with no change. --->
Save is just a standard save with validation.
System Information:
* CF6.1
* IIS
* Windows 2003
* have tried reactor bleeding edge and a stable one that has been used in
production for months (and still isn't erroring yet)
* Trusted cache and save class files is disabled
Thanks for any help!
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --