From 550a594eca2d2e2dc2fad2b7c1a4dfcf074742f0 Mon Sep 17 00:00:00 2001 From: meus Date: Wed, 20 Feb 2008 22:28:04 +0000 Subject: [PATCH] added setTableName to 4.3.1 example since it will not run out of the box without identifier quoting --- manual/docs/en/relations.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manual/docs/en/relations.txt b/manual/docs/en/relations.txt index 8a20e6c73..6f1079cf4 100644 --- a/manual/docs/en/relations.txt +++ b/manual/docs/en/relations.txt @@ -200,6 +200,9 @@ class Group extends Doctrine_Record 'foreign' => 'user_id', // <- in the association table // the following line is needed in many-to-many relations! 'refClass' => 'GroupUser')); + + //group is reserved keyword so either do this or enable ATTR_QUOTE_IDENTIFIERS + $this->setTableName('my_group'); } public function setTableDefinition() { $this->hasColumn('name', 'string', 30);