diff --git a/docs/guide/database.arr.txt b/docs/guide/database.arr.txt index bb5093e8e..4eb073285 100644 --- a/docs/guide/database.arr.txt +++ b/docs/guide/database.arr.txt @@ -741,7 +741,7 @@ class User extends CActiveRecord return array( 'profile'=>array(self::HAS_ONE,'Profile','user_id'), 'address'=>array( - self::HAS_ONE,'Address',array('id'=>'profile_id'), + self::HAS_ONE,'Address',array('profile_id'=>'id'), 'through'=>'profile' ), );