fixed small bug in the many2many example
This commit is contained in:
parent
c5291aedd7
commit
f23b69f6dc
@ -161,9 +161,10 @@ class User extends Doctrine_Record
|
||||
}
|
||||
}
|
||||
|
||||
class Group extends Doctrine_Record {
|
||||
class Group extends Doctrine_Record
|
||||
{
|
||||
public function setUp() {
|
||||
$this->hasMany('Group', array('local' => 'group_id',
|
||||
$this->hasMany('User', array('local' => 'group_id',
|
||||
'foreign' => 'user_id',
|
||||
// the following line is needed in many-to-many relations!
|
||||
'refClass' => 'GroupUser'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user