You are here

public function MigrateDestinationRelation::bulkRollback in Relation 7

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

Delete a batch of relations at once.

Parameters

$rids: Array of relation IDs to be deleted.

File

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

Class

MigrateDestinationRelation
Destination class implementing migration into relation.

Code

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