According to the Transfer docs (
http://docs.transfer-orm.com/wiki/Writing_Decorators.cfm) the following
snippet should result in the 'Name' property being set to 'Primary' if it is
set to an empty string.
<cffunction name="configure" returntype="void" output="no" access="private">
<cfscript>
if ( len(getName()) EQ 0 ) {
setName("Primary");
}
</cfscript>
</cffunction>
However, getName() still returns an empty string.
Here is another example of where configure() doesn't seem to be behaving as
the docs indicate it should.
<cffunction name="configure" returntype="void" output="no" access="private">
<cfscript>
setConfirmAddress(getEmailAddress()); // same result with
getTransferObject().getEmailAddress()
</cfscript>
</cffunction>
This results in an empty string being set, even though an email address *is*
set on the object (and it is persisted). However, if I use this code in the
getter for ConfirmAddress, I actually get the email address that is set on
the object.
<cffunction name="getConfirmAddress" returntype="string" output="no"
access="public">
<cfscript>
if ( getIsPersisted() ) {
return getEmailAddress();
} else {
return "";
}
</cfscript>
</cffunction>
I can even dump the memento inside of configure() and it will show that the
values exist, yet they still do not appear to be set. I've been scratching
my head on this for hours. Can anyone else see what I'm missing?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---