1
0
mirror of synced 2025-01-29 19:41:45 +03:00
This commit is contained in:
zYne 2007-09-06 19:32:22 +00:00
parent 7ca8d64ef4
commit 26d3d3e7a4

View File

@ -51,7 +51,7 @@ class Doctrine_I18n extends Doctrine_Plugin
throw new Doctrine_I18n_Exception('Fields not set.');
}
$this->_options['className'] = str_replace('%CLASS%',
$this->_options['className'] = str_replace('%CLASS%',
$this->_options['table']->getComponentName(),
$this->_options['className']);
@ -73,12 +73,8 @@ class Doctrine_I18n extends Doctrine_Plugin
unset($def['autoincrement']);
unset($def['sequence']);
unset($def['primary']);
$col = strtolower(Doctrine::tableize($name) . '_' . $column);
$def['primary'] = true;
$fk[$col] = $def;
$fk[$column] = $def;
}
$cols = $table->getColumns();