AFAIK Transfer has no built-in way to do what you're seeking to do.
However, doing so is a trivial matter that can easily be wrapped up in a
utility method.  Here's a quick (untested) example that I am whipping up
right here and right now for demonstration purposes only.

<cffunction name="copyFromTO" hint="returns a new Transfer Object (TO)
copied from the provided one">
    <cfargument name="toCopy" hint="the TO to copy" required="true"
type="any" />

    <cfscript>
        var new = getTransfer().new(arguments.toCopy.getClassName());
        var metadata = arguments.toCopy.getMemento();
        var key = "";
    </cfscript>

    <cfloop collection="#metadata#" item="key">
        <!--- **do not** set the id! --->
        <cfif key IS NOT "id">
            <cfinvoke component="#new#" method="set#key#">
                <cfinvokeargument name="#key#" value="#metadata[key]#" />
            </cfinvoke>
        </cfif>
    </cfloop>

    <cfreturn new />
</cffunction>

-- 
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

Reply via email to