From b23a69c1b34d875db63b9667be9a3f3ee084e3f3 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 25 Jan 2007 13:37:53 +0000 Subject: [PATCH] added docs for the usage of column aliases --- ...d - Setting table definition - Column aliases.php | 12 ++++++++++++ ...tting table definition - Field(Column) naming.php | 0 ...ing table definition - Table and class naming.php | 0 ...ed - Setting table definition - Table options.php | 0 ...d - Setting table definition - Column aliases.php | 2 ++ 5 files changed, 14 insertions(+) create mode 100644 manual/codes/Getting started - Setting table definition - Column aliases.php create mode 100644 manual/codes/Getting started - Setting table definition - Field(Column) naming.php create mode 100644 manual/codes/Getting started - Setting table definition - Table and class naming.php create mode 100644 manual/codes/Getting started - Setting table definition - Table options.php create mode 100644 manual/docs/Getting started - Setting table definition - Column aliases.php diff --git a/manual/codes/Getting started - Setting table definition - Column aliases.php b/manual/codes/Getting started - Setting table definition - Column aliases.php new file mode 100644 index 000000000..0ced54cc6 --- /dev/null +++ b/manual/codes/Getting started - Setting table definition - Column aliases.php @@ -0,0 +1,12 @@ +hasColumn('bookName as name', 'string'); + } +} +$book = new Book(); +$book->name = 'Some book'; +$book->save(); +?> diff --git a/manual/codes/Getting started - Setting table definition - Field(Column) naming.php b/manual/codes/Getting started - Setting table definition - Field(Column) naming.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Getting started - Setting table definition - Table and class naming.php b/manual/codes/Getting started - Setting table definition - Table and class naming.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/codes/Getting started - Setting table definition - Table options.php b/manual/codes/Getting started - Setting table definition - Table options.php new file mode 100644 index 000000000..e69de29bb diff --git a/manual/docs/Getting started - Setting table definition - Column aliases.php b/manual/docs/Getting started - Setting table definition - Column aliases.php new file mode 100644 index 000000000..e9fdde783 --- /dev/null +++ b/manual/docs/Getting started - Setting table definition - Column aliases.php @@ -0,0 +1,2 @@ +Doctrine offers a way of setting column aliases. This can be very useful when you want to keep the application logic separate from the +database logic. For example if you want to change the name of the database field all you need to change at your application is the column definition.