diff --git a/manual/new/docs/en/getting-started.txt b/manual/new/docs/en/getting-started.txt index 63c0c9047..ecc6903e9 100644 --- a/manual/new/docs/en/getting-started.txt +++ b/manual/new/docs/en/getting-started.txt @@ -66,7 +66,7 @@ spl_autoload_register(array('Doctrine', 'autoload')); $manager = Doctrine_Manager::getInstance(); $conn = $manager->openConnection('pgsql://user:pass@localhost/test'); -Doctrine::export('models'); +Doctrine::exportSchema('models'); This would execute the following queries on mysql. @@ -99,7 +99,7 @@ $queries = Doctrine::exportSql('models'); print_r($queries); -Notice that the methods Doctrine::export() and Doctrine::exportSql() are just short cuts for Doctrine_Export::export() and Doctrine_Export::exportSql(). So the following code is equivalent with the previous example: +Note that the methods Doctrine::exportSchema() and Doctrine::exportSql() are just short cuts for Doctrine_Export::exportSchema() and Doctrine_Export::exportSql(). So the following code is equivalent with the previous example: require_once('path-to-doctrine/lib/Doctrine.php'); diff --git a/manual/new/docs/en/getting-started/working-with-existing-databases.txt b/manual/new/docs/en/getting-started/working-with-existing-databases.txt index ba84109a9..c766e7149 100644 --- a/manual/new/docs/en/getting-started/working-with-existing-databases.txt +++ b/manual/new/docs/en/getting-started/working-with-existing-databases.txt @@ -32,7 +32,7 @@ $conn = Doctrine_Manager::connection('mysql://root:dc34@localhost/test'); // import method takes one parameter: the import directory (the directory where // the generated record files will be put in -$conn->import->import('myrecords'); +$conn->import->importSchema('myrecords'); That's it! Now there should be a file called File.php in your myrecords directory. The file should look like: