Query_Exception added
This commit is contained in:
parent
b6a07b65a5
commit
65c9c3ab75
@ -721,7 +721,12 @@ class Doctrine_Query extends Doctrine_Access {
|
||||
$table = $this->load($reference);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns Doctrine::FETCH_* constant
|
||||
*
|
||||
* @param string $mode
|
||||
* @return integer
|
||||
*/
|
||||
private function parseFetchMode($mode) {
|
||||
switch(strtolower($mode)):
|
||||
case "i":
|
||||
|
5
classes/Query/Exception.class.php
Normal file
5
classes/Query/Exception.class.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.class.php");
|
||||
|
||||
class Doctrine_Query_Exception extends Doctrine_Exception { }
|
||||
?>
|
13
classes/Session/Exception.class.php
Normal file
13
classes/Session/Exception.class.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user