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.