1
0
mirror of synced 2025-01-18 22:41:43 +03:00

added exportClasses()

This commit is contained in:
zYne 2007-06-14 20:49:11 +00:00
parent 956b4bb0ca
commit 4dede8c6d1

View File

@ -885,11 +885,23 @@ class Doctrine_Export extends Doctrine_Connection_Module
require_once $e->getPathName();
}
}
}
}
return $this->exportClasses(get_declared_classes());
}
/**
* export
* method for exporting Doctrine_Record classes to a schema
*
* @throws Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS
* occurred during the create table operation
* @param array $classes
* @return void
*/
public function exportClasses(array $classes)
{
$parent = new ReflectionClass('Doctrine_Record');
$parent = new ReflectionClass('Doctrine_Record');
foreach (get_declared_classes() as $name) {
foreach ($classes as $name) {
$class = new ReflectionClass($name);
$conn = Doctrine_Manager::getInstance()->getConnectionForComponent($name);