public function MigrateDestinationTableCopy::bulkRollback in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/destinations/table_copy.inc \MigrateDestinationTableCopy::bulkRollback()
Delete a batch of rows at once.
Parameters
$ids: Array of IDs to be deleted.
File
- plugins/
destinations/ table_copy.inc, line 30 - Copies data_row into a table using drupal_write_record()
Class
- MigrateDestinationTableCopy
- Destination class implementing migration into a single table.
Code
public function bulkRollback(array $ids) {
migrate_instrument_start('table_copy bulkRollback');
db_delete($this->tableName)
->condition(key($this->keySchema), $ids, 'IN')
->execute();
migrate_instrument_stop('table_copy bulkRollback');
}