diff options
Diffstat (limited to 'demos/blog-tutorial/protected/pages/Day2/CreateAR.page')
-rw-r--r-- | demos/blog-tutorial/protected/pages/Day2/CreateAR.page | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog-tutorial/protected/pages/Day2/CreateAR.page b/demos/blog-tutorial/protected/pages/Day2/CreateAR.page index 381e2469..1d7838a2 100644 --- a/demos/blog-tutorial/protected/pages/Day2/CreateAR.page +++ b/demos/blog-tutorial/protected/pages/Day2/CreateAR.page @@ -134,7 +134,7 @@ class PostRecord extends TActiveRecord public $author; //holds an 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(); //holds an array of PostRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
|