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
e03ef625
Commit
e03ef625
authored
May 24, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
82da4622
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Query.php
lib/Doctrine/Query.php
+18
-1
No files found.
lib/Doctrine/Query.php
View file @
e03ef625
...
...
@@ -47,6 +47,8 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
* query object
*/
protected
$isSubquery
;
protected
$isLimitSubqueryUsed
=
false
;
protected
$neededTables
=
array
();
/**
...
...
@@ -128,6 +130,15 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
{
return
$this
->
_enumParams
;
}
/**
* limitSubqueryUsed
*
* @return boolean
*/
public
function
isLimitSubqueryUsed
()
{
return
$this
->
isLimitSubqueryUsed
;
}
/**
* convertEnums
* convert enum parameters to their integer equivalents
...
...
@@ -564,6 +575,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
$rootAlias
=
key
(
$this
->
_aliasMap
);
if
(
!
empty
(
$this
->
parts
[
'limit'
])
&&
$this
->
needsSubquery
&&
$table
->
getAttribute
(
Doctrine
::
ATTR_QUERY_LIMIT
)
==
Doctrine
::
LIMIT_RECORDS
)
{
$this
->
isLimitSubqueryUsed
=
true
;
$needsSubQuery
=
true
;
}
...
...
@@ -702,7 +714,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
continue
;
}
if
(
$this
->
aliasHandler
->
hasAlias
For
(
$part
))
{
if
(
$this
->
aliasHandler
->
hasAlias
(
$part
))
{
$parts
[
$k
]
=
$this
->
aliasHandler
->
generateNewAlias
(
$part
);
}
...
...
@@ -895,6 +907,11 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
}
else
{
$componentAlias
=
$prevPath
;
}
// if the current alias already exists, skip it
if
(
isset
(
$this
->
_aliasMap
[
$componentAlias
]))
{
continue
;
}
if
(
!
isset
(
$table
))
{
// process the root of the path
...
...
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