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
ddca18a1
Commit
ddca18a1
authored
Sep 24, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed InvalidKeyException references from Doctrine_Table
parent
70f76a83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
Table.php
Doctrine/Table.php
+6
-6
run.php
tests/run.php
+5
-4
No files found.
Doctrine/Table.php
View file @
ddca18a1
...
...
@@ -423,7 +423,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
}
break
;
endswitch
;
}
catch
(
InvalidKey
Exception
$e
)
{
}
catch
(
Doctrine_Table_
Exception
$e
)
{
}
}
...
...
@@ -445,7 +445,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
*/
final
public
function
getBound
(
$name
)
{
if
(
!
isset
(
$this
->
bound
[
$name
]))
throw
new
InvalidKey
Exception
(
'Unknown bound '
.
$name
);
throw
new
Doctrine_Table_
Exception
(
'Unknown bound '
.
$name
);
return
$this
->
bound
[
$name
];
}
...
...
@@ -461,7 +461,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
return
$this
->
bound
[
$k
];
}
}
throw
new
InvalidKey
Exception
(
'Unknown bound '
.
$name
);
throw
new
Doctrine_Table_
Exception
(
'Unknown bound '
.
$name
);
}
/**
* returns the alias for given component name
...
...
@@ -485,7 +485,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
if
(
$name
=
array_search
(
$this
->
boundAliases
,
$alias
))
return
$name
;
throw
new
InvalidKey
Exception
(
'Unknown alias '
.
$alias
);
throw
new
Doctrine_Table_
Exception
(
'Unknown alias '
.
$alias
);
}
/**
* unbinds all relations
...
...
@@ -527,7 +527,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
*/
final
public
function
bind
(
$name
,
$field
,
$type
,
$localKey
)
{
if
(
isset
(
$this
->
relations
[
$name
]))
throw
new
InvalidKey
Exception
(
'Relation already set for '
.
$name
);
throw
new
Doctrine_Table_
Exception
(
'Relation already set for '
.
$name
);
$e
=
explode
(
" as "
,
$name
);
$name
=
$e
[
0
];
...
...
@@ -635,7 +635,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
try
{
$bound
=
$table
->
getBoundForName
(
$class
);
break
;
}
catch
(
InvalidKey
Exception
$exc
)
{
}
}
catch
(
Doctrine_Table_
Exception
$exc
)
{
}
}
if
(
!
isset
(
$local
))
...
...
tests/run.php
View file @
ddca18a1
<?php
ob_start
();
require_once
(
"ConfigurableTestCase.php"
);
require_once
(
"ManagerTestCase.php"
);
require_once
(
"ConnectionTestCase.php"
);
...
...
@@ -37,7 +38,7 @@ error_reporting(E_ALL);
$test
=
new
GroupTest
(
"Doctrine Framework Unit Tests"
);
//
$test->addTestCase(new Doctrine_DB_TestCase());
$test
->
addTestCase
(
new
Doctrine_DB_TestCase
());
$test
->
addTestCase
(
new
Doctrine_ConnectionTestCase
());
...
...
@@ -81,15 +82,15 @@ $test->addTestCase(new Doctrine_ImportTestCase());
$test
->
addTestCase
(
new
Doctrine_CollectionTestCase
());
$test
->
addTestCase
(
new
Doctrine_QueryTestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_ReferenceModel_TestCase
());
$test
->
addTestCase
(
new
Doctrine_BooleanTestCase
());
$test
->
addTestCase
(
new
Doctrine_QueryTestCase
());
$test
->
addTestCase
(
new
Doctrine_EnumTestCase
());
$test
->
addTestCase
(
new
Doctrine_RelationAccessTestCase
());
//
$test->addTestCase(new Doctrine_RelationAccessTestCase());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
...
...
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