summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknut <>2008-08-07 01:14:11 +0000
committerknut <>2008-08-07 01:14:11 +0000
commit0cb0583fa32038316dc1f56abb0fdd1933e84f00 (patch)
treee895f9eeea0962b57370fcff5731e5bb69647657
parentfb378385d973be20801c4723501c12396c9dcd55 (diff)
fixed #855
-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 a42cbf03..acb8416f 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7,6 +7,7 @@ BUG: Ticket#847 - getBaseUrl sometimes fails (Christophe)
BUG: Ticket#843 - TDataList alternatinItem issue after changes in rev 2227 (Christophe)
BUG: Ticket#849 - TDatePicker selecting current date problem (Christophe)
BUG: Ticket#851 - TPropertyAccess doesn't get properties right if an object has a __call() method (Simon Lehmann, Knut)
+BUG: Ticket#855 - TActiveRecord: Make db-connection serializable in __sleep() function (Knut)
BUG: Ticket#859 - errorhandler error (stever)
BUG: Ticket#860 - Prado::localize() bug (japplegame)
BUG: Ticket#870 - Callback with redirect breaks lifecycle of page (stever)
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 82d5e669..370dd69a 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -175,7 +175,7 @@ abstract class TActiveRecord extends TComponent
/**
* @var TDbConnection database connection object.
*/
- private $_connection;
+ protected $_connection; // use protected so that serialization is fine
/**
* Prevent __call() method creating __sleep() when serializing.