Docs: example for HAS_ONE relation fixed.

This commit is contained in:
Paul Klimov
2014-01-22 13:33:36 +02:00
parent dd1558b19c
commit 797237c7fa

View File

@@ -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'
),
);