You are here

public function Migration::errorCount in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/migration.inc \Migration::errorCount()

Get the number of source records which failed to import. TODO: Doesn't yet account for informationals, or multiple errors for a source record.

Return value

int Number of records errored out.

File

includes/migration.inc, line 877
Defines the base class for import/rollback processes.

Class

Migration
The base class for all import objects. This is where most of the smarts of the migrate module resides. Migrations are created by deriving from this class, and in the constructor (after calling parent::__construct()) initializing at a minimum the name,…

Code

public function errorCount() {
  return $this->map
    ->errorCount();
}