1
0
mirror of synced 2025-01-07 09:37:11 +03:00
doctrine2/manual/new/docs/en/getting-started/exporting-classes.txt
2007-06-12 22:18:21 +00:00

19 lines
474 B
Plaintext

+++ Introduction
+++ Export options
<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>