From 54e9feab491bcf8d1a95b486b68605cb4441e603 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 29 Sep 2007 22:07:12 +0000 Subject: Changed RELATIONS declaration. --- demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php | 2 +- demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/blog-tutorial/samples/day5/blog/protected/database') diff --git a/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php index 01f84437..25702727 100644 --- a/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php +++ b/demos/blog-tutorial/samples/day5/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/day5/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php index 18d5ebbe..2051e5de 100644 --- a/demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php +++ b/demos/blog-tutorial/samples/day5/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'), ); -- cgit v1.2.3