I am really lost here and from the way everything is happening,
something is caching and/or I just really don't understand what I am
doing. Basically I am loading coldspring on app start
<cffunction name="onApplicationStart" returnType="boolean"
output="false">
<cfset coldspringConfig = "/quickconnects/config/coldspring.xml">
<cfset application.coldspring = createObject('component',
'coldspring.beans.DefaultXmlBeanFactory').init() >
<cfset application.coldspring.loadBeans(coldspringConfig)>
<cfset application.settings = application.coldspring.getBean
("configBean").getEnvironmentByUrl(CGI.SERVER_NAME)>
<cfset application.userService = application.coldspring.getBean
("UserService")>
<cfreturn true>
</cffunction>
I have a users object setup in transfer.
<object name="users" decorator="quickconnects.model.user">
<id name="userId" type="numeric" generate="true"/>
<property name="firstname" type="string"/>
<property name="lastname" type="string"/>
<property name="username" type="string"/>
<property name="password" type="string"/>
<property name="email" type="string"/>
<property name="active" type="numeric"/>
</object>
If I am working with objects that are already in the system (the
transfer object has been cached) then everything works how I need it
to. What I mean by this is that when I get the object. The type of the
component is my decorator (quickconnects.model.user)
<cfset dan = application.userService.get(1)>
<cfdump var="#dan#">
If I am enter a new user in my form and then save() the user is
persisted and everything seems ok except that I notice I am working
with a new object when I retrieve it (component
transfer.com.TransferObject). This means that all of the methods I
need from my decorator are not available to me.
I know I am missing something here and I am not looking for a handout
answer, if you just want to point me in the right direction that is
cool 2, I just want to understand it.
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---