You are here

public function MigrateDestinationRelation::bulkRollback in Relation 8

Same name and namespace in other branches
  1. 8.2 relation_migrate/relation_migrate.destination.inc \MigrateDestinationRelation::bulkRollback()
  2. 7 relation_migrate/relation_migrate.destination.inc \MigrateDestinationRelation::bulkRollback()

Delete a batch of relations at once.

Parameters

$relation_ids: Array of relation IDs to be deleted.

File

relation_migrate/relation_migrate.destination.inc, line 68
Support for relation destinations.

Class

MigrateDestinationRelation
Destination class implementing migration into relation.

Code

public function bulkRollback(array $relation_ids) {
  migrate_instrument_start('relation_delete_multiple');
  $this
    ->prepareRollback($relation_ids);
  relation_delete_multiple($relation_ids);
  $this
    ->completeRollback($relation_ids);
  migrate_instrument_stop('relation_delete_multiple');
}