Community Documentation

Map classes

Last updated February 5, 2012. Created by mikeryan on December 24, 2010.
Edited by StuartDH, drewish. Log in to edit this page.

Describe map classes (along with the map and message tables) - how to use them, how to extend them...

The MigrateMap class tracks the relationship of source records to their destination records as well as messages generated during the migration. It's worth noting that MigrateMap does not track field mappings, those are the responsibility of the Migrate class.

The Migration class uses MigrateMap in conjunction with MigrateFieldMapping's sourceMigration property to replace source ids with destination ids.

The primary implementation is MigrateSQLMap which—as its name suggests—stores the mapping information in a SQL table database.

Page status

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Programmers

Administration & Security Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here