Commit eb0eb44d authored by doctrine's avatar doctrine

Compiler issues fixed

parent e3df7b6b
......@@ -395,6 +395,8 @@ final class Doctrine {
if(! self::$path)
self::$path = dirname(__FILE__);
if(class_exists($classname))
return false;
$class = self::$path.DIRECTORY_SEPARATOR.str_replace("_",DIRECTORY_SEPARATOR,$classname).".php";
......
......@@ -4,8 +4,12 @@ class Doctrine_DataDict {
private $dbh;
public function __construct(PDO $dbh) {
$manager = Doctrine_Manager::getInstance();
require_once($manager->getRoot()."/adodb-hack/adodb.inc.php");
$file = Doctrine::getPath().DIRECTORY_SEPARATOR."Doctrine".DIRECTORY_SEPARATOR."adodb-hack".DIRECTORY_SEPARATOR."adodb.inc.php";
if( ! file_exists($file))
throw new Doctrine_Exception("Couldn't include datadict. File $file does not exist");
require_once($file);
$this->dbh = $dbh;
$this->dict = NewDataDictionary($dbh);
......@@ -37,7 +41,7 @@ class Doctrine_DataDict {
$return = true;
foreach($a as $sql) {
try {
try {
$this->dbh->query($sql);
} catch(Exception $e) {
$return = $e;
......
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