Commit 946e3f1c authored by amadeus's avatar amadeus

Fixed to prevent custom message from being overidden by default

parent 12a21ba5
...@@ -5,10 +5,10 @@ Doctrine::autoload('Doctrine_Exception'); ...@@ -5,10 +5,10 @@ Doctrine::autoload('Doctrine_Exception');
* while there already exists an instance of that table * while there already exists an instance of that table
*/ */
class Doctrine_Table_Exception extends Doctrine_Exception { class Doctrine_Table_Exception extends Doctrine_Exception {
public function __construct() { public function __construct($message = "Couldn't initialize table. One instance of this
parent::__construct("Couldn't initialize table. One instance of this
table already exists. Always use Doctrine_Session::getTable(\$name) table already exists. Always use Doctrine_Session::getTable(\$name)
to get on instance of a Doctrine_Table.",Doctrine::ERR_TABLE_INSTANCE); to get on instance of a Doctrine_Table.") {
parent::__construct($message,Doctrine::ERR_TABLE_INSTANCE);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment