class dependency fix
This commit is contained in:
parent
e1548625b8
commit
776c47f769
5 changed files with 10 additions and 9 deletions
11
Doctrine.php
11
Doctrine.php
|
@ -225,8 +225,9 @@ final class Doctrine {
|
||||||
public static function loadAll() {
|
public static function loadAll() {
|
||||||
if(! self::$path)
|
if(! self::$path)
|
||||||
self::$path = dirname(__FILE__);
|
self::$path = dirname(__FILE__);
|
||||||
|
|
||||||
$dir = dir(self::$path);
|
$path = self::$path.DIRECTORY_SEPARATOR."Doctrine";
|
||||||
|
$dir = dir($path);
|
||||||
$a = array();
|
$a = array();
|
||||||
while (false !== ($entry = $dir->read())) {
|
while (false !== ($entry = $dir->read())) {
|
||||||
switch($entry):
|
switch($entry):
|
||||||
|
@ -243,11 +244,11 @@ final class Doctrine {
|
||||||
case "DQL":
|
case "DQL":
|
||||||
case "Sensei":
|
case "Sensei":
|
||||||
case "Iterator":
|
case "Iterator":
|
||||||
$a[] = self::$path.DIRECTORY_SEPARATOR.$entry;
|
$a[] = $path.DIRECTORY_SEPARATOR.$entry;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if(is_file(self::$path.DIRECTORY_SEPARATOR.$entry) && substr($entry,-4) == ".php") {
|
if(is_file($path.DIRECTORY_SEPARATOR.$entry) && substr($entry,-4) == ".php") {
|
||||||
require_once($entry);
|
require_once($path.DIRECTORY_SEPARATOR.$entry);
|
||||||
}
|
}
|
||||||
endswitch;
|
endswitch;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.php");
|
Doctrine::autoload('Doctrine_Exception');
|
||||||
/**
|
/**
|
||||||
* thrown when user defined Doctrine_Table is badly named
|
* thrown when user defined Doctrine_Table is badly named
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.php");
|
Doctrine::autoload('Doctrine_Exception');
|
||||||
/**
|
/**
|
||||||
* thrown when Doctrine_Record is refreshed and the refreshed primary key doens't match the old one
|
* thrown when Doctrine_Record is refreshed and the refreshed primary key doens't match the old one
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.php");
|
Doctrine::autoload('Doctrine_Exception');
|
||||||
/**
|
/**
|
||||||
* thrown when user tries to get the current
|
* thrown when user tries to get the current
|
||||||
* session and there are no open sessions
|
* session and there are no open sessions
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.php");
|
Doctrine::autoload('Doctrine_Exception');
|
||||||
/**
|
/**
|
||||||
* thrown when user tries to initialize a new instance of Doctrine_Table,
|
* thrown when user tries to initialize a new instance of Doctrine_Table,
|
||||||
* while there already exists an instance of that table
|
* while there already exists an instance of that table
|
||||||
|
|
Loading…
Add table
Reference in a new issue