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
bbf866d9
Commit
bbf866d9
authored
Sep 03, 2007
by
jackbravo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MAP keyword was changed to INDEXBY
parent
b4b07479
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
JoinTestCase.php
tests/Query/JoinTestCase.php
+3
-3
No files found.
tests/Query/JoinTestCase.php
View file @
bbf866d9
...
@@ -175,7 +175,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
...
@@ -175,7 +175,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
public
function
testMapKeywordForQueryWithOneComponent
()
public
function
testMapKeywordForQueryWithOneComponent
()
{
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
();
$coll
=
$q
->
from
(
'Record_City c
MAP
c.name'
)
->
fetchArray
();
$coll
=
$q
->
from
(
'Record_City c
INDEXBY
c.name'
)
->
fetchArray
();
$this
->
assertTrue
(
isset
(
$coll
[
'City 1'
]));
$this
->
assertTrue
(
isset
(
$coll
[
'City 1'
]));
$this
->
assertTrue
(
isset
(
$coll
[
'City 2'
]));
$this
->
assertTrue
(
isset
(
$coll
[
'City 2'
]));
...
@@ -185,7 +185,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
...
@@ -185,7 +185,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
public
function
testMapKeywordSupportsJoins
()
public
function
testMapKeywordSupportsJoins
()
{
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
();
$country
=
$q
->
from
(
'Record_Country c LEFT JOIN c.City c2
MAP
c2.name'
)
->
fetchOne
();
$country
=
$q
->
from
(
'Record_Country c LEFT JOIN c.City c2
INDEXBY
c2.name'
)
->
fetchOne
();
$coll
=
$country
->
City
;
$coll
=
$country
->
City
;
$this
->
assertTrue
(
isset
(
$coll
[
'City 1'
]));
$this
->
assertTrue
(
isset
(
$coll
[
'City 1'
]));
...
@@ -197,7 +197,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
...
@@ -197,7 +197,7 @@ class Doctrine_Query_Join_TestCase extends Doctrine_UnitTestCase
{
{
try
{
try
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
();
$country
=
$q
->
from
(
'Record_Country c LEFT JOIN c.City c2
MAP
c2.unknown'
)
->
fetchOne
();
$country
=
$q
->
from
(
'Record_Country c LEFT JOIN c.City c2
INDEXBY
c2.unknown'
)
->
fetchOne
();
$this
->
fail
();
$this
->
fail
();
}
catch
(
Doctrine_Query_Exception
$e
)
{
}
catch
(
Doctrine_Query_Exception
$e
)
{
...
...
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