1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Compiler issues fixed

This commit is contained in:
doctrine 2006-08-07 22:40:06 +00:00
parent e3df7b6bd0
commit eb0eb44dbd
2 changed files with 9 additions and 3 deletions

View File

@ -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";

View File

@ -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;