From d631c789f3913c3ab750b58bbf7fedd3affac308 Mon Sep 17 00:00:00 2001 From: bschussek Date: Fri, 26 Oct 2007 13:00:31 +0000 Subject: [PATCH] Correcting the last example (Phonenumber): Changed hasMany('User') to hasOne('User') --- manual/docs/en/relations.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/docs/en/relations.txt b/manual/docs/en/relations.txt index 9591d2db4..3bf9cf02d 100644 --- a/manual/docs/en/relations.txt +++ b/manual/docs/en/relations.txt @@ -589,9 +589,9 @@ class Phonenumber extends Doctrine_Record { $this->index('product_id', array('fields' => 'user_id')); - $this->hasMany('User', array('local' => 'user_id', - 'foreign' => 'id', - 'onDelete' => 'CASCADE')); + $this->hasOne('User', array('local' => 'user_id', + 'foreign' => 'id', + 'onDelete' => 'CASCADE')); } }