From 70f72d9d3d0d33de4ea2d171a9f8ec85c45ce592 Mon Sep 17 00:00:00 2001
From: fabien <fabien@625475ce-881a-0410-a577-b389adb331d8>
Date: Wed, 7 Feb 2007 13:15:32 +0000
Subject: [PATCH] fixed Compiler classes order and removed old classes from
 compilation list

---
 lib/Doctrine/Compiler.php | 69 ++++++++++++++-------------------------
 1 file changed, 24 insertions(+), 45 deletions(-)

diff --git a/lib/Doctrine/Compiler.php b/lib/Doctrine/Compiler.php
index 751e17037..d5a3e667f 100644
--- a/lib/Doctrine/Compiler.php
+++ b/lib/Doctrine/Compiler.php
@@ -36,24 +36,27 @@ class Doctrine_Compiler
      * @var array $classes          an array containing all runtime classes of Doctrine framework
      */
     private static $classes = array(
+                                   'Doctrine',
                                    'Access',
                                    'Adapter_Interface',
+                                   'Adapter_Statement_Interface',
                                    'Adapter_Statement',
                                    'Adapter',
                                    'Cache_Query_Sqlite',
+                                   'Collection',
+                                   'Collection_Iterator',
                                    'Collection_Batch',
                                    'Collection_Exception',
                                    'Collection_Immediate',
                                    'Collection_Iterator_Expandable',
                                    'Collection_Iterator_Normal',
                                    'Collection_Iterator_Offset',
-                                   'Collection_Iterator',
                                    'Collection_Lazy',
                                    'Collection_Offset',
-                                   'Collection',
                                    'Compiler_Exception',
                                    'Compiler',
                                    'Configurable',
+                                   'Connection',
                                    'Connection_Common',
                                    'Connection_Db2',
                                    'Connection_Exception',
@@ -74,23 +77,16 @@ class Doctrine_Compiler
                                    'Connection_Sqlite_Exception',
                                    'Connection_Sqlite',
                                    'Connection_UnitOfWork',
-                                   'Connection',
                                    'DataDict_Exception',
-                                   'DataDict_Firebird_Exception',
                                    'DataDict_Firebird',
-                                   'DataDict_Informix_Exception',
                                    'DataDict_Informix',
-                                   'DataDict_Mssql_Exception',
                                    'DataDict_Mssql',
-                                   'DataDict_Mysql_Exception',
                                    'DataDict_Mysql',
-                                   'DataDict_Oracle_Exception',
                                    'DataDict_Oracle',
-                                   'DataDict_Pgsql_Exception',
                                    'DataDict_Pgsql',
-                                   'DataDict_Sqlite_Exception',
                                    'DataDict_Sqlite',
                                    'DataDict',
+                                   'Db',
                                    'Db_Event',
                                    'Db_EventListener_Chain',
                                    'Db_EventListener_Interface',
@@ -101,30 +97,23 @@ class Doctrine_Compiler
                                    'Db_Profiler_Query',
                                    'Db_Profiler',
                                    'Db_Statement',
-                                   'Db',
+                                   'EventListener_Interface',
+                                   'EventListener',
                                    'EventListener_AccessorInvoker',
                                    'EventListener_Chain',
                                    'EventListener_Debugger',
                                    'EventListener_Empty',
-                                   'EventListener_Interface',
-                                   'EventListener',
                                    'Exception',
+                                   'Export',
                                    'Export_Exception',
-                                   'Export_Firebird_Exception',
                                    'Export_Firebird',
-                                   'Export_Informix_Exception',
-                                   'Export_Mssql_Exception',
                                    'Export_Mssql',
-                                   'Export_Mysql_Exception',
                                    'Export_Mysql',
-                                   'Export_Oracle_Exception',
                                    'Export_Oracle',
-                                   'Export_Pgsql_Exception',
                                    'Export_Pgsql',
                                    'Export_Reporter',
-                                   'Export_Sqlite_Exception',
                                    'Export_Sqlite',
-                                   'Export',
+                                   'Expression',
                                    'Expression_Exception',
                                    'Expression_Firebird',
                                    'Expression_Informix',
@@ -133,38 +122,29 @@ class Doctrine_Compiler
                                    'Expression_Oracle',
                                    'Expression_Pgsql',
                                    'Expression_Sqlite',
-                                   'Expression',
+                                   'Hook',
+                                   'Hook_Parser',
+                                   'Hook_Parser_Complex',
                                    'Hook_Equal',
                                    'Hook_Integer',
-                                   'Hook_Parser_Complex',
-                                   'Hook_Parser',
                                    'Hook_WordLike',
-                                   'Hook',
                                    'Hydrate_Alias',
                                    'Hydrate',
                                    'Identifier',
+                                   'Import_Builder',
                                    'Import_Builder_BaseClass',
                                    'Import_Builder_Exception',
-                                   'Import_Builder',
+                                   'Import',
                                    'Import_Exception',
-                                   'Import_Firebird_Exception',
                                    'Import_Firebird',
-                                   'Import_Informix_Exception',
                                    'Import_Informix',
-                                   'Import_Mssql_Exception',
                                    'Import_Mssql',
-                                   'Import_Mysql_Exception',
                                    'Import_Mysql',
-                                   'Import_Oracle_Exception',
                                    'Import_Oracle',
-                                   'Import_Pgsql_Exception',
                                    'Import_Pgsql',
                                    'Import_Reader_Db',
-                                   'Import_Reader_Exception',
                                    'Import_Reader',
-                                   'Import_Sqlite_Exception',
                                    'Import_Sqlite',
-                                   'Import',
                                    'Lib',
                                    'Locking_Exception',
                                    'Locking_Manager_Pessimistic',
@@ -172,6 +152,8 @@ class Doctrine_Compiler
                                    'Manager',
                                    'Null',
                                    'Overloadable',
+                                   'Query',
+                                   'Query_Part',
                                    'Query_Condition',
                                    'Query_Exception',
                                    'Query_From',
@@ -179,30 +161,28 @@ class Doctrine_Compiler
                                    'Query_Having',
                                    'Query_JoinCondition',
                                    'Query_Orderby',
-                                   'Query_Part',
                                    'Query_Set',
                                    'Query_Where',
-                                   'Query',
                                    'RawSql_Exception',
                                    'RawSql',
+                                   'Record',
                                    'Record_Exception',
                                    'Record_Iterator',
                                    'Record_State_Exception',
-                                   'Record',
+                                   'Relation',
                                    'Relation_Association_Self',
                                    'Relation_Association',
                                    'Relation_ForeignKey',
                                    'Relation_LocalKey',
-                                   'Relation',
                                    'Reporter',
+                                   'Schema_Object',
                                    'Schema_Column',
                                    'Schema_Database',
                                    'Schema_Exception',
-                                   'Schema_Object',
                                    'Schema_Relation',
                                    'Schema_Table',
                                    'Schema',
-                                   'Sequence_Db2_Exception',
+                                   'Sequence',
                                    'Sequence_Db2',
                                    'Sequence_Exception',
                                    'Sequence_Firebird',
@@ -212,11 +192,11 @@ class Doctrine_Compiler
                                    'Sequence_Oracle',
                                    'Sequence_Pgsql',
                                    'Sequence_Sqlite',
-                                   'Sequence',
                                    'Table_Exception',
+                                   'Table',
                                    'Table_Repository_Exception',
                                    'Table_Repository',
-                                   'Table',
+                                   'Transaction',
                                    'Transaction_Exception',
                                    'Transaction_Firebird',
                                    'Transaction_Informix',
@@ -225,7 +205,7 @@ class Doctrine_Compiler
                                    'Transaction_Oracle',
                                    'Transaction_Pgsql',
                                    'Transaction_Sqlite',
-                                   'Transaction',
+                                   'Validator',
                                    'Validator_Country',
                                    'Validator_Creditcard',
                                    'Validator_Date',
@@ -242,7 +222,6 @@ class Doctrine_Compiler
                                    'Validator_Regexp',
                                    'Validator_Unique',
                                    'Validator_Usstate',
-                                   'Validator',
                                    'ValueHolder',
                                    'View_Exception',
                                    'View',