added setTableName to 4.3.1 example since it will not run out of the box without identifier quoting
This commit is contained in:
parent
eb02b4d002
commit
550a594eca
@ -200,6 +200,9 @@ class Group extends Doctrine_Record
|
|||||||
'foreign' => 'user_id', // <- in the association table
|
'foreign' => 'user_id', // <- in the association table
|
||||||
// the following line is needed in many-to-many relations!
|
// the following line is needed in many-to-many relations!
|
||||||
'refClass' => 'GroupUser'));
|
'refClass' => 'GroupUser'));
|
||||||
|
|
||||||
|
//group is reserved keyword so either do this or enable ATTR_QUOTE_IDENTIFIERS
|
||||||
|
$this->setTableName('my_group');
|
||||||
}
|
}
|
||||||
public function setTableDefinition() {
|
public function setTableDefinition() {
|
||||||
$this->hasColumn('name', 'string', 30);
|
$this->hasColumn('name', 'string', 30);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user