Modified:
branches/0.11/lib/Doctrine/I18n.php
Log:
fixes #1030
Modified: branches/0.11/lib/Doctrine/I18n.php
===================================================================
--- branches/0.11/lib/Doctrine/I18n.php 2008-05-17 00:20:33 UTC (rev 4367)
+++ branches/0.11/lib/Doctrine/I18n.php 2008-05-17 00:33:43 UTC (rev 4368)
@@ -39,6 +39,9 @@
'table' => false,
'pluginTable' => false,
'children' => array(),
+ 'type' => 'string',
+ 'length' => 2,
+ 'options' => array()
);
/**
@@ -83,9 +86,12 @@
$this->hasColumns($columns);
- $this->hasColumn('lang', 'string', 2, array('fixed' => true,
- 'primary' => true));
-
+ $options = $this->_options['options'];
+ $options['fixed'] = true;
+ $options['primary'] = true;
+
+ $this->hasColumn('lang', $this->_options['type'], $this->_options['length'], $options);
+
$this->bindQueryParts(array('indexBy' => 'lang'));
}
}
\ No newline at end of file