12 lines
354 B
PHP
12 lines
354 B
PHP
<code type='php'>
|
|
// export everything, table definitions and constraints
|
|
|
|
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL);
|
|
|
|
// export classes without constraints
|
|
|
|
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_TABLES ^
|
|
Doctrine::EXPORT_CONSTRAINTS);
|
|
|
|
</code>
|