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
c8578d43
Commit
c8578d43
authored
Sep 12, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
2f66d604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
Query.php
lib/Doctrine/Query.php
+9
-3
No files found.
lib/Doctrine/Query.php
View file @
c8578d43
...
...
@@ -983,7 +983,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
if
(
!
empty
(
$sql
))
{
array_unshift
(
$this
->
parts
[
'select'
],
implode
(
', '
,
$sql
));
}
$this
->
pendingFields
=
array
();
// build the basic query
...
...
@@ -999,7 +999,11 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
// apply inheritance to WHERE part
if
(
!
empty
(
$string
))
{
$this
->
parts
[
'where'
][]
=
'('
.
$string
.
')'
;
if
(
substr
(
$string
,
0
,
1
)
===
'('
&&
substr
(
$string
,
-
1
)
===
')'
)
{
$this
->
parts
[
'where'
][]
=
$string
;
}
else
{
$this
->
parts
[
'where'
][]
=
'('
.
$string
.
')'
;
}
}
...
...
@@ -1417,13 +1421,15 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
$asf
=
$relation
->
getAssociationTable
();
$assocTableName
=
$asf
->
getTableName
();
if
(
!
$loadFields
||
!
empty
(
$map
)
||
$joinCondition
)
{
$this
->
subqueryAliases
[]
=
$assocTableName
;
}
$assocPath
=
$prevPath
.
'.'
.
$asf
->
getComponentName
();
$this
->
_aliasMap
[
$assocPath
]
=
array
(
'parent'
=>
$prevPath
,
'relation'
=>
$relation
,
'table'
=>
$asf
);
$assocAlias
=
$this
->
getTableAlias
(
$assocPath
,
$asf
->
getTableName
());
$queryPart
=
$join
.
$assocTableName
.
' '
.
$assocAlias
;
...
...
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