Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 518 Bytes

File metadata and controls

23 lines (16 loc) · 518 Bytes

merge

Merge an entity or array of entities back into the session

Returns

  • Same entity if one passed, array if an array of entities passed.

Arguments

Key Type Required Default Description
entity any Yes ---

Examples

// merge a single entity back
ormService.merge( userEntity );
// merge an array of entities
collection = [entity1,entity2,entity3];
ormService.merge( collection );