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
65c9c3ab
Commit
65c9c3ab
authored
May 30, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query_Exception added
parent
b6a07b65
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
Query.class.php
classes/Query.class.php
+6
-1
Exception.class.php
classes/Query/Exception.class.php
+5
-0
Exception.class.php
classes/Session/Exception.class.php
+13
-0
No files found.
classes/Query.class.php
View file @
65c9c3ab
...
@@ -721,7 +721,12 @@ class Doctrine_Query extends Doctrine_Access {
...
@@ -721,7 +721,12 @@ class Doctrine_Query extends Doctrine_Access {
$table
=
$this
->
load
(
$reference
);
$table
=
$this
->
load
(
$reference
);
}
}
}
}
/**
* returns Doctrine::FETCH_* constant
*
* @param string $mode
* @return integer
*/
private
function
parseFetchMode
(
$mode
)
{
private
function
parseFetchMode
(
$mode
)
{
switch
(
strtolower
(
$mode
))
:
switch
(
strtolower
(
$mode
))
:
case
"i"
:
case
"i"
:
...
...
classes/Query/Exception.class.php
0 → 100644
View file @
65c9c3ab
<?php
require_once
(
Doctrine
::
getPath
()
.
DIRECTORY_SEPARATOR
.
"Exception.class.php"
);
class
Doctrine_Query_Exception
extends
Doctrine_Exception
{
}
?>
classes/Session/Exception.class.php
0 → 100644
View file @
65c9c3ab
<?php
require_once
(
Doctrine
::
getPath
()
.
DIRECTORY_SEPARATOR
.
"Exception.class.php"
);
/**
* thrown when user tries to get the current
* session and there are no open sessions
*/
class
Doctrine_Session_Exception
extends
Doctrine_Exception
{
public
function
__construct
()
{
parent
::
__construct
(
"There are no opened sessions. Use
Doctrine_Manager::getInstance()->openSession() to open a new session."
,
Doctrine
::
ERR_NO_SESSIONS
);
}
}
?>
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