Index: Doctrine/Data/Import.php =================================================================== --- Doctrine/Data/Import.php (revision 2) +++ Doctrine/Data/Import.php (working copy) @@ -126,13 +126,17 @@ protected function _buildRows($className, $data) { $table = Doctrine_Core::getTable($className); + + // Check if one of templates has a i18n plugin + $has_i18n = false; + foreach( $table->getTemplates() as $tpl ) if( $has_i18n = method_exists( $tpl , 'getI18n' ) ) break; foreach ($data as $rowKey => $row) { // do the same for the row information $this->_rows[$className][$rowKey] = $row; foreach ((array) $row as $key => $value) { - if ($table->hasRelation($key) && is_array($value) && ! $table->hasTemplate('Doctrine_Template_I18n')) { + if ($table->hasRelation($key) && is_array($value) && ! $has_i18n ) { // Skip associative arrays defining keys to relationships if ( ! isset($value[0]) || (isset($value[0]) && is_array($value[0]))) { $rel = $table->getRelation($key);