summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/samples/day3
diff options
context:
space:
mode:
Diffstat (limited to 'demos/blog-tutorial/samples/day3')
-rw-r--r--demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php
index 01f84437..25702727 100644
--- a/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php
+++ b/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php
@@ -15,7 +15,7 @@ class PostRecord extends TActiveRecord
public $author;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
diff --git a/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php
index 18d5ebbe..2051e5de 100644
--- a/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php
+++ b/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php
@@ -15,7 +15,7 @@ class UserRecord extends TActiveRecord
public $posts=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);