1
0
mirror of synced 2024-12-13 14:56:01 +03:00

trivial changes to docs

This commit is contained in:
pookey 2007-07-01 09:14:37 +00:00
parent 11f9940db2
commit 263e42416f

View File

@ -33,9 +33,9 @@ Building upon the above, we can say that the modifiers alter the field definitio
<code type="php">
'sometime' = array(
'type' = 'time',
'default' = '12:34:05',
'notnull' = true,
'type' => 'time',
'default' => '12:34:05',
'notnull' => true,
),
</code>
@ -43,8 +43,8 @@ Using the above example, we can also explore the default field operator. Default
<code type="php">
'sometext' = array(
'type' = 'text',
'length' = 12,
'type' => 'text',
'length' => 12,
),
</code>
@ -63,7 +63,7 @@ class Test extends Doctrine_Record {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ Array
This is the same as 'array' type in PHP.
This is the same as 'array' type in PHP.
<code type="php">
class Test extends Doctrine_Record {
@ -125,7 +125,7 @@ class Test extends Doctrine_Record {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ 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 {
}
</code>
++++ 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'
)
)
);
);
}
}
</code>
++++ 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.