r4368 - branches/0.11/lib/Doctrine

0 views
Skip to first unread message

no-r...@phpdoctrine.org

unread,
May 16, 2008, 8:33:46 PM5/16/08
to doctri...@googlegroups.com
Author: jwage
Date: 2008-05-17 01:33:43 +0100 (Sat, 17 May 2008)
New Revision: 4368

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

Reply all
Reply to author
Forward
0 new messages