1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/docs/Getting started - Exporting classes - Export options.php
2007-04-13 21:49:11 +00:00

15 lines
436 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);
// turn off exporting
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE);
</code>