public function OgEntityMigration::__construct in Organic groups 7.2
General initialization of a Migration object.
Overrides Migration::__construct
3 calls to OgEntityMigration::__construct()
- OgMigrateMembership::__construct in includes/
migrate/ 7200/ og_og_membership.migrate.inc - General initialization of a Migration object.
- OgMigrateRoles::__construct in includes/
migrate/ 7200/ og_roles.migrate.inc - General initialization of a Migration object.
- OgMigrateUserRoles::__construct in includes/
migrate/ 7200/ og_user_roles.migrate.inc - General initialization of a Migration object.
3 methods override OgEntityMigration::__construct()
- OgMigrateMembership::__construct in includes/
migrate/ 7200/ og_og_membership.migrate.inc - General initialization of a Migration object.
- OgMigrateRoles::__construct in includes/
migrate/ 7200/ og_roles.migrate.inc - General initialization of a Migration object.
- OgMigrateUserRoles::__construct in includes/
migrate/ 7200/ og_user_roles.migrate.inc - General initialization of a Migration object.
File
- includes/
migrate/ og.migrate.inc, line 12 - Parent class to OG migration.
Class
- OgEntityMigration
- @file Parent class to OG migration.
Code
public function __construct() {
parent::__construct(MigrateGroup::getInstance('og_7200'));
// Create a map object for tracking the relationships between source
// rows.
if (empty($this->sourceKey)) {
$this->sourceKey = array(
$this->keyName => array(
'type' => 'int',
'not null' => TRUE,
),
);
}
$this->map = new MigrateSQLMap($this->machineName, $this->sourceKey, MigrateDestinationTable::getKeySchema($this->tableName));
$this->source = new MigrateSourceSQL($this->query);
$this->destination = new MigrateDestinationTable($this->tableName);
}