Commit 550a594e authored by meus's avatar meus

added setTableName to 4.3.1 example since it will not run out of the box without identifier quoting

parent eb02b4d0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment