1
0
mirror of synced 2025-01-17 22:11:41 +03:00

Added documentation for turning off foreign key sql in export.

This commit is contained in:
Jonathan.Wage 2007-08-27 15:10:36 +00:00
parent bf6ed870fa
commit 0a21d72760

View File

@ -28,3 +28,17 @@ class MyCustomOptionRecord extends Doctrine_Record
}
}
</code>
Doctrine offers the ability to turn off foreign key constraints for specific Models.
<code type="php">
class MyCustomOptionRecord extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string');
$this->option('export_foreign_key_sql', false);
}
}
</code>