Skip to content
Gunnar edited this page Dec 1, 2017 · 5 revisions

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 );
Clone this wiki locally