summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2008-03-07 17:01:44 +0000
committerxue <>2008-03-07 17:01:44 +0000
commit6990083c854e74a0403f917d34d9cb68e3d953b9 (patch)
tree4dc550d3f5f38de04214c4d8d215eef7ae5837b7
parent2ffc7580d8dbe6968e5b05347103fa9e862d958e (diff)
fixed #803.
-rw-r--r--HISTORY1
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php2
2 files changed, 2 insertions, 1 deletions
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.