Show
Ignore:
Timestamp:
03/06/2007 02:40:51 PM (22 months ago)
Author:
xue
Message:

changed the way to specify active record table.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/demos/quickstart/protected/pages/Tutorial/AjaxChat.page

    r1729 r1750  
    169169class ChatUserRecord extends TActiveRecord 
    170170{ 
     171    const TABLE='chat_users'; 
     172     
    171173    public $username; 
    172174    public $last_activity; 
    173  
    174     public static $_tablename='chat_users'; 
    175175 
    176176    public static function finder($className=__CLASS__) 
     
    503503class ChatBufferRecord extends TActiveRecord 
    504504{ 
     505        const TABLE='chat_buffer'; 
     506 
    505507    public $id; 
    506508    public $for_user; 
     
    508510    public $message; 
    509511    private $_created_on; 
    510  
    511     public static $_tablename='chat_buffer'; 
    512512 
    513513    public function getCreated_On()