Commit fc913a3d authored by zYne's avatar zYne

Added some line breaks

parent 75242e50
One problem with database compatibility is that many databases differ in their behaviour of how the result set of a One problem with database compatibility is that many databases differ in their behaviour of how the result set of a
query is returned. MySql leaves the field names unchanged, which means if you issue a query of the form query is returned. MySql leaves the field names unchanged, which means if you issue a query of the form
"SELECT myField FROM ..." then the result set will contain the field 'myField'. Unfortunately, this is "SELECT myField FROM ..." then the result set will contain the field 'myField'.
just the way MySql and some other databases do it. Postgres for example returns all field names in lowercase <br />
<br />
Unfortunately, this is just the way MySql and some other databases do it. Postgres for example returns all field names in lowercase
whilst Oracle returns all field names in uppercase. "So what? In what way does this influence me when using Doctrine?", whilst Oracle returns all field names in uppercase. "So what? In what way does this influence me when using Doctrine?",
you may ask. Fortunately, you don't have to bother about that issue at all. Doctrine takes care of this problem you may ask. Fortunately, you don't have to bother about that issue at all. <br />
<br />Doctrine takes care of this problem
transparently. That means if you define a derived Record class and define a field called 'myField' you will always transparently. That means if you define a derived Record class and define a field called 'myField' you will always
access it through $record->myField (or $record['myField'], whatever you prefer) no matter whether you're using MySql access it through $record->myField (or $record['myField'], whatever you prefer) no matter whether you're using MySql
or Postgres or Oracle ect.<br /> or Postgres or Oracle ect.<br />
<br /> <br />
In short: You can name your fields however you want, using under_scores, camelCase or whatever you prefer. In short: You can name your fields however you want, using under_scores, camelCase or whatever you prefer.
\ No newline at end of file
...@@ -94,11 +94,12 @@ $menu = array("Getting started" => ...@@ -94,11 +94,12 @@ $menu = array("Getting started" =>
"Starting new project", "Starting new project",
"Setting table definition" => array( "Setting table definition" => array(
"Introduction", "Introduction",
"Field(Column) naming",
"Data types and lengths", "Data types and lengths",
"Constraints and validators", "Constraints and validators",
"Default values", "Default values",
"Enum emulation", "Enum emulation",
"Field(Column) naming"
), ),
"Record identifiers" => array( "Record identifiers" => array(
"Introduction", "Introduction",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment