Whatever message this page gives is out now! Go check it out!

EntityMerge

Last update:
May 18, 2026

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

Function Syntax

entityMerge( entity)

Parameters

Parameter
Description
entity
The entity that must be attached to the ORM session.

See Also

EntityLoadEntityLoadByExampleEntityDeleteColdFusion ORM chapter in Developing ColdFusion Applications

History

ColdFusion 9: Added this function.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page