diff --git a/manual/docs/en/relations.txt b/manual/docs/en/relations.txt index 3bf9cf02d..e046bdc3b 100644 --- a/manual/docs/en/relations.txt +++ b/manual/docs/en/relations.txt @@ -181,8 +181,8 @@ class User extends Doctrine_Record { public function setUp() { - $this->hasMany('Group', array('local' => 'user_id', - 'foreign' => 'group_id', + $this->hasMany('Group', array('local' => 'user_id', // <- these are the column names + 'foreign' => 'group_id', // <- in the association table // the following line is needed in many-to-many relations! 'refClass' => 'GroupUser')); @@ -196,8 +196,8 @@ class User extends Doctrine_Record class Group extends Doctrine_Record { public function setUp() { - $this->hasMany('User', array('local' => 'group_id', - 'foreign' => 'user_id', + $this->hasMany('User', array('local' => 'group_id', // <- these are the column names + 'foreign' => 'user_id', // <- in the association table // the following line is needed in many-to-many relations! 'refClass' => 'GroupUser')); }