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/pages/Tutorial/fr/AjaxChat.page | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'demos/quickstart/protected/pages/Tutorial/fr') diff --git a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page index 7bc36d5f..24c5ea76 100644 --- a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page +++ b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page @@ -168,11 +168,11 @@ as App_Code/chat.db. class ChatUserRecord extends TActiveRecord { + const TABLE='chat_users'; + public $username; public $last_activity; - public static $_tablename='chat_users'; - public static function finder($className=__CLASS__) { return parent::finder($className); @@ -502,14 +502,14 @@ The corresponding ChatBufferRecord class is saved as class ChatBufferRecord extends TActiveRecord { + const TABLE='chat_buffer'; + public $id; public $for_user; public $from_user; public $message; private $_created_on; - public static $_tablename='chat_buffer'; - public function getCreated_On() { if($this->_created_on === null) -- cgit v1.2.3