Changeset 1750 for trunk/UPGRADE

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

changed the way to specify active record table.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/UPGRADE

    r1749 r1750  
    1212Upgrading from v3.1a 
    1313--------------------- 
    14 - The signature of TActiveRecord::finder() is changed. All TActiveRecord-descendant 
    15   classes that override this method will be affected. Please use the 
    16   following code to override the method:         
     14- The signature of TActiveRecord::finder() is changed. This affects 
     15  all TActiveRecord-descendant classes that override this method. 
     16  Please use the following code to override the method:  
    1717        public static function finder($className=__CLASS__) 
    1818        { 
    1919                return parent::finder($className); 
    2020        } 
     21 
     22- The way to specify the table name for an active record class is changed. 
     23  Previously, it used the static class member '_tablename'.  
     24  Now it uses class constant as follows: 
     25    class UserRecord extends TActiveRecord 
     26    { 
     27        const TABLE='users_table'; 
     28    } 
    2129 
    2230Upgrading from v3.0.x