From fd204ee7f602a95a25bd9a9f8dd0772202dad37d Mon Sep 17 00:00:00 2001 From: romanb Date: Tue, 1 Sep 2009 08:18:36 +0000 Subject: [PATCH] [2.0] Updated description for pear packages. Enhanced ClassLoader to support the old namespace separator (underscore) for Zend/PEAR/... compatibility until some day when they all use 5.3+. --- build.properties.dev | 9 ++------- lib/Doctrine/Common/ClassLoader.php | 2 +- lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php | 4 ++-- tools/sandbox/index.php | 4 +++- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/build.properties.dev b/build.properties.dev index 46e6373ad..a823ffb20 100644 --- a/build.properties.dev +++ b/build.properties.dev @@ -1,11 +1,6 @@ name=Doctrine -summary=PHP5 Database ORM -description=Doctrine is an ORM (object relational mapper) for PHP 5.2.x+ that sits on top of -a powerful DBAL (database abstraction layer). One of its key features is the -ability to optionally write database queries in an OO (object oriented) -SQL-dialect called DQL inspired by Hibernates HQL. This provides developers with -a powerful alternative to SQL that maintains a maximum of flexibility without -requiring needless code duplication. +summary=PHP5 ORM +description=Doctrine 2 is an ORM (object relational mapper) for transparent PHP object persistence. version_name=2.0.0-ALPHA1 version=2.0.0 stability=alpha diff --git a/lib/Doctrine/Common/ClassLoader.php b/lib/Doctrine/Common/ClassLoader.php index 5db195976..a48e34503 100644 --- a/lib/Doctrine/Common/ClassLoader.php +++ b/lib/Doctrine/Common/ClassLoader.php @@ -49,7 +49,7 @@ class ClassLoader /** * @var string Namespace separator */ - private $_namespaceSeparator = '\\'; + private $_namespaceSeparator = array('\\', '_'); /** * @var string File extension used for classes diff --git a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php index b5f70eeaf..982e82775 100644 --- a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php +++ b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php @@ -19,8 +19,8 @@ use Doctrine\ORM\Tools\SchemaTool, * otherwise it has no effect. * * --dump-sql - * Specifies that instead of directly executing the SQL statements for creating the - * database schema, they should be printed to the standard output. + * Specifies that instead of directly executing the SQL statements, + * they should be printed to the standard output. * * --create * Specifies that the schema of the classes should be created. diff --git a/tools/sandbox/index.php b/tools/sandbox/index.php index eb7bbe89f..3ffbe8677 100644 --- a/tools/sandbox/index.php +++ b/tools/sandbox/index.php @@ -1,3 +1,5 @@