You are here

abstract public function MigrateMap::saveIDMapping in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/map.inc \MigrateMap::saveIDMapping()

Save a mapping from the key values in the source row to the destination keys.

Parameters

$source_row:

$dest_ids:

$status:

$rollback_action:

$hash:

1 method overrides MigrateMap::saveIDMapping()
MigrateSQLMap::saveIDMapping in plugins/sources/sqlmap.inc
Called upon import of one record, we record a mapping from the source key to the destination key. Also may be called, setting the third parameter to NEEDS_UPDATE, to signal an existing record should be remigrated.

File

includes/map.inc, line 87
Defines the framework for map and message handling.

Class

MigrateMap
We implement the Iterator interface to support iteration over the map table for the purpose of rollback.

Code

public abstract function saveIDMapping(stdClass $source_row, array $dest_ids, $status = MigrateMap::STATUS_IMPORTED, $rollback_action = MigrateMap::ROLLBACK_DELETE, $hash = NULL);