From c05fffcc93ea6488ab8c7cef7391c80c3e3933db Mon Sep 17 00:00:00 2001 From: Johannes Heinen Date: Mon, 20 Jun 2011 19:07:03 +0200 Subject: [PATCH] Suppressed php undefined variable notice adding initialization code to Doctrine\ORM\Mapping\Driver\DatabaseDriver.php --- lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php b/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php index 0ee1060c7..c2d9240a2 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php @@ -110,6 +110,8 @@ class DatabaseDriver implements Driver return; } + $tables = array(); + foreach ($this->_sm->listTableNames() as $tableName) { $tables[$tableName] = $this->_sm->listTableDetails($tableName); }