From 157c2d5fedd5e8466b5c8f5fff63ead933bcf81b Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Wed, 29 Aug 2007 21:53:41 +0000 Subject: [PATCH] Updated documentation to show example on how to disable foreign key constraint exporting for individual models. --- manual/new/docs/en/object-relational-mapping/table-options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9d1601b24..a62d7b107 100644 --- a/manual/new/docs/en/object-relational-mapping/table-options.txt +++ b/manual/new/docs/en/object-relational-mapping/table-options.txt @@ -38,7 +38,7 @@ class MyCustomOptionRecord extends Doctrine_Record { $this->hasColumn('name', 'string'); - $this->option('export_foreign_key_sql', false); + $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL ^ Doctrine::EXPORT_CONSTRAINTS); } } \ No newline at end of file