From 263e42416f46e2145c7b7b55052b59ab36df03f2 Mon Sep 17 00:00:00 2001 From: pookey Date: Sun, 1 Jul 2007 09:14:37 +0000 Subject: [PATCH] trivial changes to docs --- .../columns/data-types.txt | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/manual/new/docs/en/object-relational-mapping/columns/data-types.txt b/manual/new/docs/en/object-relational-mapping/columns/data-types.txt index b4cd5f654..c73edab2b 100644 --- a/manual/new/docs/en/object-relational-mapping/columns/data-types.txt +++ b/manual/new/docs/en/object-relational-mapping/columns/data-types.txt @@ -33,9 +33,9 @@ Building upon the above, we can say that the modifiers alter the field definitio 'sometime' = array( - 'type' = 'time', - 'default' = '12:34:05', - 'notnull' = true, + 'type' => 'time', + 'default' => '12:34:05', + 'notnull' => true, ), @@ -43,8 +43,8 @@ Using the above example, we can also explore the default field operator. Default 'sometext' = array( - 'type' = 'text', - 'length' = 12, + 'type' => 'text', + 'length' => 12, ), @@ -63,7 +63,7 @@ class Test extends Doctrine_Record { } - + ++++ Integer The integer type is the same as integer type in PHP. It may store integer values as large as each DBMS may handle. @@ -80,7 +80,7 @@ class Test extends Doctrine_Record { } - + ++++ Float The float data type may store floating point decimal numbers. This data type is suitable for representing numbers within a large scale range that do not require high accuracy. The scale and the precision limits of the values that may be stored in a database depends on the DBMS that it is used. @@ -93,7 +93,7 @@ class Test extends Doctrine_Record { } - + ++++ String The text data type is available with two options for the length: one that is explicitly length limited and another of undefined length that should be as large as the database allows. @@ -112,10 +112,10 @@ class Test extends Doctrine_Record { } - + ++++ Array -This is the same as 'array' type in PHP. +This is the same as 'array' type in PHP. class Test extends Doctrine_Record { @@ -125,7 +125,7 @@ class Test extends Doctrine_Record { } - + ++++ Object Doctrine supports objects as column types. Basically you can set an object to a field and Doctrine handles automatically the serialization / unserialization of that object. @@ -138,7 +138,7 @@ class Test extends Doctrine_Record { } - + ++++ Blob Blob (Binary Large OBject) data type is meant to store data of undefined length that may be too large to store in text fields, like data that is usually stored in files. @@ -153,7 +153,7 @@ class Test extends Doctrine_Record { } - + ++++ Clob Clob (Character Large OBject) data type is meant to store data of undefined length that may be too large to store in text fields, like data that is usually stored in files. @@ -170,7 +170,7 @@ class Test extends Doctrine_Record { } - + ++++ Timestamp The timestamp data type is a mere combination of the date and the time of the day data types. The representation of values of the time stamp type is accomplished by joining the date and time string values in a single string joined by a space. Therefore, the format template is YYYY-MM-DD HH:MI:SS. The represented values obey the same rules and ranges described for the date and time data types @@ -183,7 +183,7 @@ class Test extends Doctrine_Record { } - + ++++ Time The time data type may represent the time of a given moment of the day. DBMS independent representation of the time of the day is also accomplished by using text strings formatted according to the ISO-8601 standard. @@ -201,7 +201,7 @@ class Test extends Doctrine_Record { } - + ++++ Date The date data type may represent dates with year, month and day. DBMS independent representation of dates is accomplished by using text strings formatted according to the IS0-8601 standard. @@ -218,7 +218,7 @@ class Test extends Doctrine_Record { } - + ++++ 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). @@ -234,12 +234,12 @@ class Test extends Doctrine_Record { 'python' ) ) - ); + ); } } - + ++++ Gzip Gzip datatype is the same as string except that its automatically compressed when persisted and uncompressed when fetched. This datatype can be useful when storing data with a large compressibility ratio, such as bitmap images.