1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/manual/docs/Getting started - Exporting classes - Export options.php

12 lines
354 B
PHP
Raw Normal View History

2007-02-27 16:14:59 +00: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);
</code>