diff options
author | xue <> | 2007-09-29 22:07:12 +0000 |
---|---|---|
committer | xue <> | 2007-09-29 22:07:12 +0000 |
commit | 54e9feab491bcf8d1a95b486b68605cb4441e603 (patch) | |
tree | bffc84037861293872f5db616345888ffbd0e453 /demos/blog-tutorial/protected/pages/Day2/id | |
parent | 109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (diff) |
Changed RELATIONS declaration.
Diffstat (limited to 'demos/blog-tutorial/protected/pages/Day2/id')
-rw-r--r-- | demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page b/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page index 533825c6..0d4b178d 100644 --- a/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page +++ b/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page @@ -134,7 +134,7 @@ class PostRecord extends TActiveRecord public $author; //menampung array UserRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
@@ -152,7 +152,7 @@ class UserRecord extends TActiveRecord public $posts=array(); //menampung array PostRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
|