diff --git a/manual/new/docs/en/object-relational-mapping/table-options.txt b/manual/new/docs/en/object-relational-mapping/table-options.txt index 31223c2f2..9d1601b24 100644 --- a/manual/new/docs/en/object-relational-mapping/table-options.txt +++ b/manual/new/docs/en/object-relational-mapping/table-options.txt @@ -28,3 +28,17 @@ class MyCustomOptionRecord extends Doctrine_Record } } + +Doctrine offers the ability to turn off foreign key constraints for specific Models. + + +class MyCustomOptionRecord extends Doctrine_Record +{ + public function setTableDefinition() + { + $this->hasColumn('name', 'string'); + + $this->option('export_foreign_key_sql', false); + } +} + \ No newline at end of file