Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
b23a69c1
Commit
b23a69c1
authored
Jan 25, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docs for the usage of column aliases
parent
07cbafe7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
Getting started - Setting table definition - Column aliases.php
...g started - Setting table definition - Column aliases.php
+12
-0
Getting started - Setting table definition - Field(Column) naming.php
...ted - Setting table definition - Field(Column) naming.php
+0
-0
Getting started - Setting table definition - Table and class naming.php
...d - Setting table definition - Table and class naming.php
+0
-0
Getting started - Setting table definition - Table options.php
...ng started - Setting table definition - Table options.php
+0
-0
Getting started - Setting table definition - Column aliases.php
...g started - Setting table definition - Column aliases.php
+2
-0
No files found.
manual/codes/Getting started - Setting table definition - Column aliases.php
0 → 100644
View file @
b23a69c1
<?php
class
Book
extends
Doctrine_Record
{
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'bookName as name'
,
'string'
);
}
}
$book
=
new
Book
();
$book
->
name
=
'Some book'
;
$book
->
save
();
?>
manual/codes/Getting started - Setting table definition - Field(Column) naming.php
0 → 100644
View file @
b23a69c1
manual/codes/Getting started - Setting table definition - Table and class naming.php
0 → 100644
View file @
b23a69c1
manual/codes/Getting started - Setting table definition - Table options.php
0 → 100644
View file @
b23a69c1
manual/docs/Getting started - Setting table definition - Column aliases.php
0 → 100644
View file @
b23a69c1
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
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment