1
0
mirror of synced 2025-01-18 06:21:40 +03:00

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

This commit is contained in:
meus 2008-02-20 22:28:04 +00:00
parent eb02b4d002
commit 550a594eca

View File

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