diff --git a/manual/new/docs/en/database-abstraction.txt b/manual/new/docs/en/database-abstraction.txt index f75c7c70d..066fccf82 100644 --- a/manual/new/docs/en/database-abstraction.txt +++ b/manual/new/docs/en/database-abstraction.txt @@ -27,7 +27,7 @@ $definition = array ( 'default' => 0, ), 'name' => array ( - 'type' => 'text', + 'type' => 'string', 'length' => 255 ), 'datetime' => array ( @@ -41,7 +41,7 @@ $conn->export->createTable('events', $definition); The keys of the definition array are the names of the fields in the table. The values are arrays containing the required key 'type' as well as other keys, depending on the value of 'type'. The values for the 'type' key are the same as the possible Doctrine datatypes. Depending on the datatype, the other options may vary. ||~ Datatype ||~ length ||~ default ||~ not null ||~ unsigned ||~ autoincrement || -|| text || x || x || x || || || +|| strin || x || x || x || || || || boolean || || x || x || || || || integer || x || x || x || x || x || || decimal || || x || x || || || @@ -69,7 +69,7 @@ $definition = array ( 'default' => 0, ), 'name' => array ( - 'type' => 'text', + 'type' => 'string', 'length' => 255 ) ); @@ -183,7 +183,7 @@ $a = array('name' => 'userlist', 'name' => array( 'length' => '20', 'definition' => array( - 'type' => 'text', + 'type' => 'string', 'length' => 20 ) ) @@ -192,7 +192,7 @@ $a = array('name' => 'userlist', 'sex' => array( 'name' => 'gender', 'definition' => array( - 'type' => 'text', + 'type' => 'string', 'length' => 1, 'default' => 'M' )