Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 638 Bytes

File metadata and controls

28 lines (19 loc) · 638 Bytes

saveAll

Saves an array of passed entities in specified order and transaction safe

Returns

  • This function returns void

Arguments

Key Type Required Default Description
entities array Yes --- The array of entities to persist
forceInsert boolean No false
flush boolean No false
transactional boolean No true Use ColdFusion transactions or not

Examples

var user = ormService.new("User");
populateModel(user);
var user2 = ormService.new("User");
populateModel(user);

ormService.saveAll( [user1,user2] );