From 0a21d727609bcf514fe851e04dbd54740290debd Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Mon, 27 Aug 2007 15:10:36 +0000 Subject: [PATCH] Added documentation for turning off foreign key sql in export. --- .../en/object-relational-mapping/table-options.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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