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);