Bulk insert & delete
You can insert multiple models at the same time (using just one INSERT
query) using the Collection#import
method:
Only non-persisted valid models can be inserted. Any validation failure in the model list will throw an exception and revert the whole process.
Collection#import
allows the passing optional block to refine he insert query built:
Last updated