From 8a674fb83fa2dd80bc653745e03b24450a9cf68d Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 6 Mar 2007 20:40:51 +0000 Subject: changed the way to specify active record table. --- demos/quickstart/protected/controls/Comments/CommentBlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/quickstart/protected/controls/Comments') diff --git a/demos/quickstart/protected/controls/Comments/CommentBlock.php b/demos/quickstart/protected/controls/Comments/CommentBlock.php index b0f23d47..9c008491 100644 --- a/demos/quickstart/protected/controls/Comments/CommentBlock.php +++ b/demos/quickstart/protected/controls/Comments/CommentBlock.php @@ -10,6 +10,8 @@ $manager->setDbConnection($db); class CommentRecord extends TActiveRecord { + const TABLE='qs_comments'; + public $id; public $username; public $date_added; @@ -17,8 +19,6 @@ class CommentRecord extends TActiveRecord public $block_id; public $content; - public static $_tablename='qs_comments'; - public static function finder($className=__CLASS__) { return parent::finder($className); -- cgit v1.2.3