From 2704af643573d86c81b453949f7eb8e8c4325125 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 31 Oct 2006 18:05:15 +0000 Subject: [PATCH] Little fix --- lib/Doctrine/Lib.php | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/lib/Doctrine/Lib.php b/lib/Doctrine/Lib.php index 694cf75b8..8163a0946 100644 --- a/lib/Doctrine/Lib.php +++ b/lib/Doctrine/Lib.php @@ -95,23 +95,10 @@ class Doctrine_Lib { public static function getConnectionAsString(Doctrine_Connection $connection) { $r[] = "
";
         $r[] = "Doctrine_Connection object";
-        $r[] = "State               : ".Doctrine_Lib::getConnectionStateAsString($connection->getState());
-        $r[] = "Open Transactions   : ".$connection->getTransactionLevel();
-        $r[] = "Open Factories      : ".$connection->count();
-        $sum = 0;
-        $rsum = 0;
-        $csum = 0;
-        foreach($connection->getTables() as $objTable) {
-            if($objTable->getCache() instanceof Doctrine_Cache_File) {
-                $sum += array_sum($objTable->getCache()->getStats());
-                $rsum += $objTable->getRepository()->count();
-                $csum += $objTable->getCache()->count();
-            }
-        }
-        $r[] = "Cache Hits          : ".$sum." hits ";
-        $r[] = "Cache               : ".$csum." objects ";
+        $r[] = "State               : ".Doctrine_Lib::getConnectionStateAsString($connection->getTransaction()->getState());
+        $r[] = "Open Transactions   : ".$connection->getTransaction()->getTransactionLevel();
+        $r[] = "Table in memory     : ".$connection->count();
 
-        $r[] = "Repositories        : ".$rsum." objects ";
         $queries = false;
         if($connection->getDBH() instanceof Doctrine_DB) {
             $handler = "Doctrine Database Handler";