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
ba61451a
Commit
ba61451a
authored
Jun 14, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
cbdb0f97
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
33 deletions
+33
-33
order-by-clause.txt
...w/docs/en/dql-doctrine-query-language/order-by-clause.txt
+29
-29
getting-started.txt
manual/new/docs/en/getting-started.txt
+2
-2
native-sql.txt
manual/new/docs/en/native-sql.txt
+2
-2
No files found.
manual/new/docs/en/dql-doctrine-query-language/order-by-clause.txt
View file @
ba61451a
...
...
@@ -12,8 +12,8 @@ Syntax:
Examples:
<code>
FROM User
.Phonenumber
ORDER BY
User.name, Phonenumber.phonenumber
FROM User
u LEFT JOIN u.Phonenumber p
ORDER BY
u.name, p.phonenumber
FROM User u, u.Email e
ORDER BY e.address, u.id
...
...
@@ -22,7 +22,7 @@ FROM User u, u.Email e
In order to sort in reverse order you can add the DESC (descending) keyword to the name of the column in the ORDER BY clause that you are sorting by. The default is ascending order; this can be specified explicitly using the ASC keyword.
<code>
FROM User u
, u.Email e
FROM User u
LEFT JOIN u.Email e
ORDER BY e.address DESC, u.id ASC;
</code>
...
...
manual/new/docs/en/getting-started.txt
View file @
ba61451a
...
...
@@ -34,7 +34,7 @@ class User extends Doctrine_Record
public function setUp()
{
$this->hasMany('Phonenumber', array('local' => 'id',
'foreign' => 'user_id');
'foreign' => 'user_id')
)
;
}
}
// file Phonenumber.php
...
...
@@ -49,7 +49,7 @@ class Phonenumber extends Doctrine_Record
{
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id',
'onDelete' => 'CASCADE');
'onDelete' => 'CASCADE')
)
;
}
}
</code>
...
...
manual/new/docs/en/native-sql.txt
View file @
ba61451a
...
...
@@ -53,7 +53,7 @@ class User extends Doctrine_Record
public function setUp()
{
$this->hasMany('Phonenumber', array('local' => 'id',
'foreign' => 'user_id');
'foreign' => 'user_id')
)
;
}
}
// file Phonenumber.php
...
...
@@ -68,7 +68,7 @@ class Phonenumber extends Doctrine_Record
{
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id',
'onDelete' => 'CASCADE');
'onDelete' => 'CASCADE')
)
;
}
}
</code>
...
...
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