summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/protected/pages/Day2/fr
diff options
context:
space:
mode:
Diffstat (limited to 'demos/blog-tutorial/protected/pages/Day2/fr')
-rwxr-xr-xdemos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page b/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page
index 82c1dbf8..1c5aae7b 100755
--- a/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page
+++ b/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page
@@ -133,7 +133,7 @@ class PostRecord extends TActiveRecord
public $author; //contient un objet UserRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
@@ -151,7 +151,7 @@ class UserRecord extends TActiveRecord
public $posts=array(); //contient un tableau de PostRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);