More documentation.
This commit is contained in:
parent
347ec1272b
commit
51a444e2e8
@ -763,7 +763,6 @@ final class Doctrine
|
||||
|
||||
file_put_contents($path, $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* exportSql
|
||||
* method for exporting Doctrine_Record classes to a schema
|
||||
@ -774,6 +773,14 @@ final class Doctrine
|
||||
{
|
||||
return Doctrine_Manager::connection()->export->exportSql($directory);
|
||||
}
|
||||
/**
|
||||
* generateSqlFromModels
|
||||
*
|
||||
* Generate sql for directory of models
|
||||
*
|
||||
* @param string $directory Directory where your models exist
|
||||
* @return void
|
||||
*/
|
||||
public static function generateSqlFromModels($directory)
|
||||
{
|
||||
return self::exportSql($directory);
|
||||
|
Loading…
x
Reference in New Issue
Block a user