mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-04 07:14:06 +01:00
Docs: example for HAS_ONE relation fixed.
This commit is contained in:
@@ -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'
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user