From d4ea1ed8348508b71dcbbf296a4e028f04567e1d Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 15 Jan 2008 14:52:18 +0000 Subject: fixed a bug in calculating object hash. --- framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Data/ActiveRecord/Relations') diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php index 63e182ca..4c238801 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php @@ -161,7 +161,7 @@ abstract class TActiveRecordRelation { $ids=array(); foreach($properties as $property) - $ids[] = is_object($obj) ? $obj->getColumnValue($property) : $obj[$property]; + $ids[] = is_object($obj) ? (string)$obj->getColumnValue($property) : (string)$obj[$property]; return serialize($ids); } -- cgit v1.2.3