EntityMerge()

Attaches given entity to current ORM session

EntityMerge( entity=any );

Returns: any

Argument Description
entity
any, required

The entity that must be attached to the ORM session.

Examples

entity = entityLoad( "users", {FirstName="lucee"}, true );
ormclearsession();
EntityMerge( entity ); //merge entity
writeOutput(ormgetsession().getStatistics().getEntityCount());

See also