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
a87e4183
Commit
a87e4183
authored
May 15, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
04d0ffb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Query.php
draft/new-core/Query.php
+1
-1
JoinTestCase.php
tests/Query/JoinTestCase.php
+3
-3
No files found.
draft/new-core/Query.php
View file @
a87e4183
...
...
@@ -876,7 +876,7 @@ class Doctrine_Query2 extends Doctrine_Hydrate2 implements Countable
.
$joinCondition
;
if
(
$relation
instanceof
Doctrine_Relation_Association_Self
)
{
$queryPart
.=
' OR '
.
$foreign
Table
.
'.'
.
$table
->
getIdentifier
()
.
' = '
$queryPart
.=
' OR '
.
$foreign
Alias
.
'.'
.
$table
->
getIdentifier
()
.
' = '
.
$assocAlias
.
'.'
.
$relation
->
getLocal
();
}
...
...
tests/Query/JoinTestCase.php
View file @
a87e4183
...
...
@@ -58,7 +58,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
}
public
function
testRecordHydrationWorksWithDeeplyNestedStructures
()
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
2
();
$q
->
select
(
'c.*, c2.*, d.*'
)
->
from
(
'Record_Country c'
)
->
leftJoin
(
'c.City c2'
)
->
leftJoin
(
'c2.District d'
)
...
...
@@ -77,7 +77,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
}
public
function
testManyToManyJoinUsesProperTableAliases
()
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
2
();
$q
->
select
(
'u.name'
)
->
from
(
'User u INNER JOIN u.Group g'
);
...
...
@@ -86,7 +86,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
public
function
testSelfReferentialAssociationJoinsAreSupported
()
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
2
();
$q
->
select
(
'e.name'
)
->
from
(
'Entity e INNER JOIN e.Entity e2'
);
...
...
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