Author: jwage
Date: 2008-08-26 23:07:24 +0100 (Tue, 26 Aug 2008)
New Revision: 4822
Modified:
branches/1.0/docs/manual/en/basic-schema-mapping/columns/data-types.txt
Log:
fixes #1287
Modified:
branches/1.0/docs/manual/en/basic-schema-mapping/columns/data-types.txt
===================================================================
--- branches/1.0/docs/manual/en/basic-schema-mapping/columns/data-types.txt
2008-08-26 22:03:32 UTC (rev 4821)
+++ branches/1.0/docs/manual/en/basic-schema-mapping/columns/data-types.txt
2008-08-26 22:07:24 UTC (rev 4822)
@@ -384,10 +384,15 @@
++++ Enum
-Doctrine has a unified enum type. Enum typed columns automatically convert the
string values into index numbers and vice
-versa. The possible values for the column can be specified with
Doctrine_Record::setEnumValues(columnName, array values).
+Doctrine has a unified enum type. Enum typed columns automatically convert the
string values into index numbers and vice versa. The possible values for the
column can be specified with Doctrine_Record::setEnumValues(columnName, array
values) or can be specified on the column definition with hasColumn()
+Note: If you wish to use native enum types for your dbms if it supports it
then you must set the following attribute:
+
<code type="php">
+$conn->setAttribute('use_native_enum', true);
+</code>
+
+<code type="php">
class Test extends Doctrine_Record
{
public function setTableDefinition()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---