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
d1b9daa2
Commit
d1b9daa2
authored
Apr 13, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made Doctrine_Query ignore empty orderby parameters
parent
53eabd3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Query.php
lib/Doctrine/Query.php
+7
-2
No files found.
lib/Doctrine/Query.php
View file @
d1b9daa2
...
@@ -550,15 +550,20 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
...
@@ -550,15 +550,20 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
case
'having'
:
case
'having'
:
case
'orderby'
:
case
'orderby'
:
case
'groupby'
:
case
'groupby'
:
$class
=
"Doctrine_Query_"
.
ucwords
(
$name
);
if
(
empty
(
$args
[
0
]))
{
return
$this
;
}
$class
=
'Doctrine_Query_'
.
ucwords
(
$name
);
$parser
=
new
$class
(
$this
);
$parser
=
new
$class
(
$this
);
$this
->
parts
[
$name
]
=
array
(
$parser
->
parse
(
$args
[
0
]));
$this
->
parts
[
$name
]
=
array
(
$parser
->
parse
(
$args
[
0
]));
break
;
break
;
case
'limit'
:
case
'limit'
:
case
'offset'
:
case
'offset'
:
if
(
$args
[
0
]
==
null
)
if
(
$args
[
0
]
==
null
)
{
$args
[
0
]
=
false
;
$args
[
0
]
=
false
;
}
$this
->
parts
[
$name
]
=
$args
[
0
];
$this
->
parts
[
$name
]
=
$args
[
0
];
break
;
break
;
...
...
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