From 956b4bb0ca92187033df4a6740200e2a35d86e7e Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 14 Jun 2007 20:44:40 +0000 Subject: [PATCH] added exportSql() --- lib/Doctrine.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine.php b/lib/Doctrine.php index 8dd58985b..c8662a551 100644 --- a/lib/Doctrine.php +++ b/lib/Doctrine.php @@ -430,7 +430,17 @@ final class Doctrine */ public static function export($directory) { - Doctrine_Export::export(); + return Doctrine_Manager::connection()->export->export($directory); + } + /** + * exportSql + * method for exporting Doctrine_Record classes to a schema + * + * @param string $directory + */ + public static function exportSql($directory) + { + return Doctrine_Manager::connection()->export->exportSql($directory); } /** * compile