diff options
author | xue <> | 2007-09-28 18:26:03 +0000 |
---|---|---|
committer | xue <> | 2007-09-28 18:26:03 +0000 |
commit | 5b521d0186d7b6dee98c68b8a090916ec57e9fbe (patch) | |
tree | 624931d79f90a099edb80017e68f3ca8a5015d02 /framework | |
parent | 199fc1254f84f851a2894df94487a45ed68f7c98 (diff) |
changed from protected to public.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Data/ActiveRecord/TActiveRecord.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php index 20463956..5cc6dee0 100644 --- a/framework/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Data/ActiveRecord/TActiveRecord.php @@ -73,7 +73,7 @@ Prado::using('System.Data.ActiveRecord.Relations.TActiveRecordRelationContext'); * class UserRecord extends TActiveRecord * { * const TABLE='users'; - * protected static $COLUMN_MAPPING=array + * public static $COLUMN_MAPPING=array * ( * 'user_id'=>'username', * 'email_address'=>'email', @@ -98,16 +98,6 @@ abstract class TActiveRecord extends TComponent const BELONGS_TO='BELONGS_TO'; const HAS_ONE='HAS_ONE'; - /** - * @var boolean true if this class is read only. - */ - private $_readOnly=false; - - /** - * @var TDbConnection database connection object. - */ - private $_connection; - private static $_columnMapping=array(); /** @@ -117,7 +107,17 @@ abstract class TActiveRecord extends TComponent * for the corresponding active record class. * @var array column mapping. Keys: physical column names, values: logical column names. */ - protected static $COLUMN_MAPPING=array(); + public static $COLUMN_MAPPING=array(); + + /** + * @var boolean true if this class is read only. + */ + private $_readOnly=false; + + /** + * @var TDbConnection database connection object. + */ + private $_connection; /** * Prevent __call() method creating __sleep() when serializing. |