From 7eba036cdc68aea741f58598f1f92911076fddb8 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 19 Jun 2007 22:55:34 +0000 Subject: [PATCH] --- lib/Doctrine/Compiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Compiler.php b/lib/Doctrine/Compiler.php index 9ff451b4d..e70517ae7 100644 --- a/lib/Doctrine/Compiler.php +++ b/lib/Doctrine/Compiler.php @@ -49,11 +49,11 @@ class Doctrine_Compiler $e = explode('.', $file->getFileName()); // we don't want to require versioning files - if (end($e) === 'php' && count($e) === 2) { + if (end($e) === 'php' && strpos($file->getFileName(), '.inc') === false) { require_once $file->getPathName(); } } - + $classes = array_merge(get_declared_classes(), get_declared_interfaces()); $ret = array();