Commit 0a21d727 authored by Jonathan.Wage's avatar Jonathan.Wage

Added documentation for turning off foreign key sql in export.

parent bf6ed870
......@@ -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>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment