summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/samples/day4/blog/protected
diff options
context:
space:
mode:
authorxue <>2007-09-29 22:07:12 +0000
committerxue <>2007-09-29 22:07:12 +0000
commit54e9feab491bcf8d1a95b486b68605cb4441e603 (patch)
treebffc84037861293872f5db616345888ffbd0e453 /demos/blog-tutorial/samples/day4/blog/protected
parent109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (diff)
Changed RELATIONS declaration.
Diffstat (limited to 'demos/blog-tutorial/samples/day4/blog/protected')
-rw-r--r--demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php
index 01f84437..25702727 100644
--- a/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php
+++ b/demos/blog-tutorial/samples/day4/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/day4/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php
index 18d5ebbe..2051e5de 100644
--- a/demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php
+++ b/demos/blog-tutorial/samples/day4/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'),
);