From bef66f5b4af2200c2cf3670b29cb50e0fbd4268e Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 19 Jun 2007 23:28:39 +0000 Subject: [PATCH] --- lib/Doctrine/Import.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Doctrine/Import.php b/lib/Doctrine/Import.php index 12d53d7a0..9cd0874c3 100644 --- a/lib/Doctrine/Import.php +++ b/lib/Doctrine/Import.php @@ -181,14 +181,20 @@ class Doctrine_Import extends Doctrine_Connection_Module * * @param string $directory * @param array $databases + * @return array the names of the imported classes */ public function import($directory, array $databases = array()) { $builder = new Doctrine_Import_Builder(); $builder->setTargetPath($directory); + $classes = array(); foreach ($this->listTables() as $table) { $builder->buildRecord($table, $this->listTableColumns($table)); + + $classes[] = Doctrine::classify($table); } + + return $classes; } }