diff options
author | xue <> | 2007-03-06 20:40:51 +0000 |
---|---|---|
committer | xue <> | 2007-03-06 20:40:51 +0000 |
commit | 8a674fb83fa2dd80bc653745e03b24450a9cf68d (patch) | |
tree | 83f72026185075b0ffacf5c1996d3424b0e2f31f /UPGRADE | |
parent | 2ab695a553abf26e530f5e97c1ea357233d80998 (diff) |
changed the way to specify active record table.
Diffstat (limited to 'UPGRADE')
-rw-r--r-- | UPGRADE | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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,
|