Commit 26d3d3e7 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 7ca8d64e
...@@ -51,7 +51,7 @@ class Doctrine_I18n extends Doctrine_Plugin ...@@ -51,7 +51,7 @@ class Doctrine_I18n extends Doctrine_Plugin
throw new Doctrine_I18n_Exception('Fields not set.'); 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['table']->getComponentName(),
$this->_options['className']); $this->_options['className']);
...@@ -73,12 +73,8 @@ class Doctrine_I18n extends Doctrine_Plugin ...@@ -73,12 +73,8 @@ class Doctrine_I18n extends Doctrine_Plugin
unset($def['autoincrement']); unset($def['autoincrement']);
unset($def['sequence']); unset($def['sequence']);
unset($def['primary']);
$col = strtolower(Doctrine::tableize($name) . '_' . $column); $fk[$column] = $def;
$def['primary'] = true;
$fk[$col] = $def;
} }
$cols = $table->getColumns(); $cols = $table->getColumns();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment