From 5b521d0186d7b6dee98c68b8a090916ec57e9fbe Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 28 Sep 2007 18:26:03 +0000 Subject: changed from protected to public. --- framework/Data/ActiveRecord/TActiveRecord.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'framework/Data') 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. -- cgit v1.2.3