1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/manual/docs/Getting started - Exporting classes - Export options.php

15 lines
450 B
PHP
Raw Normal View History

2007-02-27 19:14:59 +03:00
<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);
2007-02-27 21:06:58 +03:00
// turn off exporting
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE);
2007-02-27 19:14:59 +03:00
</code>