EntityMerge

Description

Attaches the specified entity to the current ORM session. It copies the state of the given object onto the persistent object with the same identifier and returns the persistent object.

If there is no persistent instance currently associated with the session, it is loaded. The given instance is not associated with the session. User have to use the returned object from this session.

Returns

object

Category

ORM functions

Function Syntax

entityMerge( entity)

Parameters

Parameter

Description

entity

The entity that must be attached to the ORM session.

See Also

EntityLoad, EntityLoadByExample, EntityDelete, ColdFusion ORM chapter in Developing ColdFusion Applications

History

ColdFusion 9: Added this function.