From 6990083c854e74a0403f917d34d9cb68e3d953b9 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 7 Mar 2008 17:01:44 +0000 Subject: fixed #803. --- HISTORY | 1 + framework/Data/ActiveRecord/TActiveRecord.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 38b4efd6..9c513657 100644 --- a/HISTORY +++ b/HISTORY @@ -13,6 +13,7 @@ BUG: Ticket#785 - TDatePicker OnDateChanged event problem (Christophe) BUG: Ticket#787 - Typo in validation3.js (Christophe) BUG: Ticket#766, #786 - TDbCache does not work with MySQL and PostgreSQL (Qiang) BUG: Ticket#799 - Fixed several link errors in documentation about PDO (Qiang) +BUG: Ticket#803 - TActiveRecord cannot be serialized/unserialized correctly. (Qiang) BUG: Fixed a bug in TPropertyValue::ensureArray() (Qiang) CHG: Changed TConditional so that the controls in its template behave like they are in its parent (Qiang) CHG: Active Record many-to-many relationship change from self::HAS_MANY to self::MANY_TO_MANY (Wei) diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php index ba1bcc29..64187cc6 100644 --- a/framework/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Data/ActiveRecord/TActiveRecord.php @@ -149,7 +149,7 @@ abstract class TActiveRecord extends TComponent * @var integer record state: 0 = new, 1 = loaded, 2 = deleted. * @since 3.1.2 */ - private $_recordState=0; + protected $_recordState=0; // use protected so that serialization is fine /** * This static variable defines the column mapping. -- cgit v1.2.3