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. --- UPGRADE | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'UPGRADE') diff --git a/UPGRADE b/UPGRADE index 9415e94f..9e27ba0b 100644 --- a/UPGRADE +++ b/UPGRADE @@ -11,14 +11,22 @@ for both A and B. Upgrading from v3.1a --------------------- -- The signature of TActiveRecord::finder() is changed. All TActiveRecord-descendant - classes that override this method will be affected. Please use the - following code to override the method: +- The signature of TActiveRecord::finder() is changed. This affects + all TActiveRecord-descendant classes that override this method. + Please use the following code to override the method: public static function finder($className=__CLASS__) { return parent::finder($className); } +- The way to specify the table name for an active record class is changed. + Previously, it used the static class member '_tablename'. + Now it uses class constant as follows: + class UserRecord extends TActiveRecord + { + const TABLE='users_table'; + } + Upgrading from v3.0.x --------------------- - Validators ClientSide.OnSuccess becomes ClientSide.OnValidationSuccess, -- cgit v1.2.3