Railo 4.2 Reference
Choose a function:

Function DUPLICATE

Returns a new duplicated version of the given object, removing all references to the old one

Example

duplicate(any object,[boolean deepcopy]):any

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
object any  Yes Name of a variable to duplicate  
deepcopy boolean  No if set to true (default) also the child elements are cloned, otherwise the child elements are still the same as in the original object