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
15135c68
Commit
15135c68
authored
May 29, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
95434d72
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Query.class.php
classes/Query.class.php
+2
-2
CollectionTestCase.class.php
tests/CollectionTestCase.class.php
+1
-1
run.php
tests/run.php
+2
-2
No files found.
classes/Query.class.php
View file @
15135c68
...
...
@@ -934,10 +934,10 @@ class Doctrine_Query extends Doctrine_Access {
switch
(
$mark
)
:
case
":"
:
$this
->
parts
[
"join"
][
$tname
][]
=
"INNER JOIN "
.
$tname2
.
" ON "
.
$tname
.
"."
.
$fk
->
getLocal
()
.
" = "
.
$tname2
.
"."
.
$fk
->
getForeign
();
$this
->
parts
[
"join"
][
$tname
][
$tname2
]
=
"INNER JOIN "
.
$tname2
.
" ON "
.
$tname
.
"."
.
$fk
->
getLocal
()
.
" = "
.
$tname2
.
"."
.
$fk
->
getForeign
();
break
;
case
"."
:
$this
->
parts
[
"join"
][
$tname
][]
=
"LEFT JOIN "
.
$tname2
.
" ON "
.
$tname
.
"."
.
$fk
->
getLocal
()
.
" = "
.
$tname2
.
"."
.
$fk
->
getForeign
();
$this
->
parts
[
"join"
][
$tname
][
$tname2
]
=
"LEFT JOIN "
.
$tname2
.
" ON "
.
$tname
.
"."
.
$fk
->
getLocal
()
.
" = "
.
$tname2
.
"."
.
$fk
->
getForeign
();
break
;
endswitch
;
...
...
tests/CollectionTestCase.class.php
View file @
15135c68
...
...
@@ -16,7 +16,7 @@ class Doctrine_CollectionTestCase extends Doctrine_UnitTestCase {
}
public
function
testExpand
()
{
$users
=
$this
->
session
->
query
(
"FROM User-b
, User
.Phonenumber-l WHERE User.Phonenumber.phonenumber LIKE '%123%'"
);
$users
=
$this
->
session
->
query
(
"FROM User-b.Phonenumber-l WHERE User.Phonenumber.phonenumber LIKE '%123%'"
);
$this
->
assertTrue
(
$users
instanceof
Doctrine_Collection_Batch
);
$this
->
assertTrue
(
$users
[
1
]
instanceof
User
);
...
...
tests/run.php
View file @
15135c68
...
...
@@ -23,7 +23,7 @@ error_reporting(E_ALL);
$test
=
new
GroupTest
(
"Doctrine Framework Unit Tests"
);
//$test->addTestCase(new Sensei_UnitTestCase());
/**
$test
->
addTestCase
(
new
Doctrine_RecordTestCase
());
$test
->
addTestCase
(
new
Doctrine_SessionTestCase
());
...
...
@@ -45,7 +45,7 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase());
$test
->
addTestCase
(
new
Doctrine_Collection_OffsetTestCase
());
$test
->
addTestCase
(
new
Doctrine_CollectionTestCase
());
*/
$test
->
addTestCase
(
new
Doctrine_QueryTestCase
());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
...
...
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